This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
gibson:teaching:fall-2016:math753:julia-notebooks [2016/09/01 07:34] gibson created |
gibson:teaching:fall-2016:math753:julia-notebooks [2016/09/26 11:18] (current) gibson |
||
---|---|---|---|
Line 5: | Line 5: | ||
Note: you will have to do all these steps //only the first time// you run a Julia notebook. After that you can just start with step 5, ''using IJulia''. | Note: you will have to do all these steps //only the first time// you run a Julia notebook. After that you can just start with step 5, ''using IJulia''. | ||
- | **1.** Download a Julia notebook file to your computer. Let's start with notebooks from [[http://sistemas.fciencias.unam.mx/~dsanders/|David Sanders]]' [[https://github.com/dpsanders/hands_on_julia|Hands-on Julia]] tutorial. You can downlad them from the previous link or get them here: | + | **1.** Download a Julia notebook file to your computer. Let's start with notebooks from [[http://sistemas.fciencias.unam.mx/~dsanders/|David Sanders]]' [[https://github.com/dpsanders/hands_on_julia|Hands-on Julia]] tutorial. You can download them from the previous link or get them here: |
* {{:gibson:teaching:fall-2016:math753:hands_on_julia:1._numbers_variables_and_basic_functions.ipynb|1. Numbers, variables and basic functions.ipyn}} | * {{:gibson:teaching:fall-2016:math753:hands_on_julia:1._numbers_variables_and_basic_functions.ipynb|1. Numbers, variables and basic functions.ipyn}} | ||
Line 61: | Line 61: | ||
</code> | </code> | ||
- | **6.** At the Julia prompt, type ''notebook()''. This tells Julia to start an IJulia notebook in a browser, either starting up a new browser, if you don't have one running, or as a new tab in an existing browser. | + | **6.** At the Julia prompt, type ''notebook(dir=homedir())''. This tells Julia to start an IJulia notebook in a browser, either starting up a new browser, if you don't have one running, or as a new tab in an existing browser. The ''dir=homedir()'' argument tells Julia to start the notebook in your home directory (folder), rather than |
<code> | <code> | ||
- | julia> notebook() | + | julia> notebook(dir=homedir()) |
</code> | </code> | ||
- | The browser window should look like this, listing the Julia notebooks you downloaded. | + | You should be able to naviagate to wherever you downloaded the Julia notebook file. The browser window will look somethign like this, listing the Julia notebooks you downloaded. |
{{ :gibson:teaching:fall-2016:math753:hands_on_julia:jupyter1.jpg?800 |}} | {{ :gibson:teaching:fall-2016:math753:hands_on_julia:jupyter1.jpg?800 |}} |