Skip to content

Commit

Permalink
tutorial update for julia 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
denizyuret committed Mar 9, 2022
1 parent 0d372be commit 0c3d855
Show file tree
Hide file tree
Showing 16 changed files with 530 additions and 447 deletions.
6 changes: 3 additions & 3 deletions tutorial/00.Julia_is_fast.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1665,15 +1665,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
},
"toc": {
"colors": {
Expand Down
6 changes: 3 additions & 3 deletions tutorial/10.Getting_to_know_Julia.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1383,15 +1383,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/15.quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@
"lastKernelId": null
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/20.mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,15 +213,15 @@
},
"accelerator": "GPU",
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/23.learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -767,15 +767,15 @@
"lastKernelId": null
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/25.iterators.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -459,15 +459,15 @@
"lastKernelId": null
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/30.lin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1436,15 +1436,15 @@
"metadata": {
"accelerator": "GPU",
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/40.mlp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -941,15 +941,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/50.cnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1553,15 +1553,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/60.rnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1143,15 +1143,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/70.imdb.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -652,15 +652,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/80.charlm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -693,15 +693,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions tutorial/90.s2s.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -445,15 +445,15 @@
"version": "0.3.2"
},
"kernelspec": {
"display_name": "Julia 1.6",
"display_name": "Julia 1.7",
"language": "julia",
"name": "julia-1.6"
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.6"
"version": "1.7"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion tutorial/JuliaOnColab.ipynb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"nbformat":4,"nbformat_minor":0,"metadata":{"kernelspec":{"name":"julia-1.6","display_name":"Julia 1.6"},"accelerator":"GPU","colab":{"name":"JuliaOnColab.ipynb","provenance":[],"collapsed_sections":[]}},"cells":[{"cell_type":"markdown","metadata":{"id":"Q7S9cpFJqfXy"},"source":["## Julia on Colaboratory ##\n","\n","[Colaboratory](https://colab.research.google.com) does not provide native support for the [Julia programming language](https://julialang.org). However, since Colaboratory gives you root access to the machine that runs your notebook (the *“runtime”* in Colaboratory terminology), we can install Julia support by uploading a specially crafted Julia notebook – *this* notebook. We then install Julia and [IJulia](https://github.com/JuliaLang/IJulia.jl) ([Jupyter](https://jupyter.org)/Colaboratory notebook support) and reload the notebook so that Colaboratory detects and initiates what we installed.\n","\n","In brief:\n","\n","1. **Run the cell below**\n","2. **Reload the page**\n","3. **Edit the notebook name and start hacking Julia code below**\n","\n","**If your runtime resets**, either manually or if left idle for some time, **repeat steps 1 and 2**.\n","\n","### Acknowledgements ###\n","\n","This hack by Pontus Stenetorp is an adaptation of [James Bradbury’s original Colaboratory Julia hack](https://discourse.julialang.org/t/julia-on-google-colab-free-gpu-accelerated-shareable-notebooks/15319/27), that broke some time in September 2019 as Colaboratory increased their level of notebook runtime isolation. There also appears to be CUDA compilation support installed by default for each notebook runtime type in October 2019, which shaves off a good 15 minutes or so from the original hack’s installation time. Adapted for Knet by Deniz Yuret."]},{"cell_type":"code","metadata":{"id":"BrHjOFFsxf7W"},"source":["# Julia/IJulia installation cell: run once (takes 30 seconds) and reload page before running the next cell\n","%%shell\n","wget 'https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.3-linux-x86_64.tar.gz' -O /tmp/julia.tar.gz\n","tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n","rm /tmp/julia.tar.gz\n","julia -e 'using Pkg; Pkg.add(\"IJulia\")'"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"bkBZp_6YP4gf"},"source":["# Knet installation cell: run after reloading/renaming notebook\n","ENV[\"JULIA_CUDA_USE_BINARYBUILDER\"]=\"false\" # Use this for faster installation, otherwise CUDA libraries will be downloaded\n","using Pkg; Pkg.add(\"Knet\")"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"pWDXteAbeUmz"},"source":["# All should be ready, you can start typing Julia code or cutting and pasting cells from another notebook"],"execution_count":null,"outputs":[]}]}
{"nbformat":4,"nbformat_minor":0,"metadata":{"kernelspec":{"name":"julia-1.7","display_name":"Julia 1.7"},"accelerator":"GPU","colab":{"name":"JuliaOnColab.ipynb","provenance":[],"collapsed_sections":[]}},"cells":[{"cell_type":"markdown","metadata":{"id":"Q7S9cpFJqfXy"},"source":["## Julia on Colaboratory ##\n","\n","[Colaboratory](https://colab.research.google.com) does not provide native support for the [Julia programming language](https://julialang.org). However, since Colaboratory gives you root access to the machine that runs your notebook (the *“runtime”* in Colaboratory terminology), we can install Julia support by uploading a specially crafted Julia notebook – *this* notebook. We then install Julia and [IJulia](https://github.com/JuliaLang/IJulia.jl) ([Jupyter](https://jupyter.org)/Colaboratory notebook support) and reload the notebook so that Colaboratory detects and initiates what we installed.\n","\n","In brief:\n","\n","1. **Run the cell below**\n","2. **Reload the page**\n","3. **Edit the notebook name and start hacking Julia code below**\n","\n","**If your runtime resets**, either manually or if left idle for some time, **repeat steps 1 and 2**.\n","\n","### Acknowledgements ###\n","\n","This hack by Pontus Stenetorp is an adaptation of [James Bradbury’s original Colaboratory Julia hack](https://discourse.julialang.org/t/julia-on-google-colab-free-gpu-accelerated-shareable-notebooks/15319/27), that broke some time in September 2019 as Colaboratory increased their level of notebook runtime isolation. There also appears to be CUDA compilation support installed by default for each notebook runtime type in October 2019, which shaves off a good 15 minutes or so from the original hack’s installation time. Adapted for Knet by Deniz Yuret."]},{"cell_type":"code","metadata":{"id":"BrHjOFFsxf7W"},"source":["# Julia/IJulia installation cell: run once (takes 30 seconds) and reload page before running the next cell\n","%%shell\n","wget 'https://julialang-s3.julialang.org/bin/linux/x64/1.7/julia-1.7.2-linux-x86_64.tar.gz' -O /tmp/julia.tar.gz\n","tar -x -f /tmp/julia.tar.gz -C /usr/local --strip-components 1\n","rm /tmp/julia.tar.gz\n","julia -e 'using Pkg; Pkg.add(\"IJulia\")'"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"bkBZp_6YP4gf"},"source":["# Knet installation cell: run after reloading/renaming notebook\n","ENV[\"JULIA_CUDA_USE_BINARYBUILDER\"]=\"false\" # Use this for faster installation, otherwise CUDA libraries will be downloaded\n","using Pkg; Pkg.add(\"Knet\")"],"execution_count":null,"outputs":[]},{"cell_type":"code","metadata":{"id":"pWDXteAbeUmz"},"source":["# All should be ready, you can start typing Julia code or cutting and pasting cells from another notebook"],"execution_count":null,"outputs":[]}]}
Loading

0 comments on commit 0c3d855

Please sign in to comment.