====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
gibson:teaching:fall-2016:math753:installing-julia [2016/08/31 05:25] gibson [Julia notebooks] |
gibson:teaching:fall-2016:math753:installing-julia [2016/09/01 07:23] (current) gibson [Run Julia on JuliaBox] |
||
---|---|---|---|
Line 18: | Line 18: | ||
To that end, my plan for using Julia on the Kingsbury N129 computers is for students to download and install the Julia binaries for Windows into a folder on a USB stick. I personally don't know much about Windows, so this will be a bit of an in-class experiment. If it doesn't go well, I'll get Academic Technologies to install Julia directly on the Kingsbury N129 computers. | To that end, my plan for using Julia on the Kingsbury N129 computers is for students to download and install the Julia binaries for Windows into a folder on a USB stick. I personally don't know much about Windows, so this will be a bit of an in-class experiment. If it doesn't go well, I'll get Academic Technologies to install Julia directly on the Kingsbury N129 computers. | ||
- | ===== Run Julia on JuliaBox ===== | + | ===== Using JuliaBox ===== |
If you have a [[https://accounts.google.com/signup|Google account]] you can run Julia on [[https://www.juliabox.com/]]. Just log on with your Google ID. | If you have a [[https://accounts.google.com/signup|Google account]] you can run Julia on [[https://www.juliabox.com/]]. Just log on with your Google ID. | ||
Line 54: | Line 54: | ||
----- | ----- | ||
- | |||
- | ====== Julia notebooks ====== | ||
- | |||
- | A Julia notebook is a system that combines mathematical text, executable Julia code, and graphical output within a web browser. If you have Julia running on a laptop or UNH computer, you can start a notebook as follows | ||
- | |||
- | **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: | ||
- | |||
- | * {{: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:2._iteration_-_ranges_vectors_and_conditionals.ipynb|2. Iteration - ranges, vectors and conditionals.ipynb}} | ||
- | |||
- | **2.** Start the Julia REPL by clicking the executable or directly from the command line. | ||
- | <code> | ||
- | _ | ||
- | _ _ _(_)_ | A fresh approach to technical computing | ||
- | (_) | (_) (_) | Documentation: http://docs.julialang.org | ||
- | _ _ _| |_ __ _ | Type "?help" for help. | ||
- | | | | | | | |/ _` | | | ||
- | | | |_| | | | (_| | | Version 0.4.6 (2016-06-19 17:16 UTC) | ||
- | _/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release | ||
- | |__/ | x86_64-unknown-linux-gnu | ||
- | |||
- | julia> | ||
- | </code> | ||
- | |||
- | **3.** At the Julia prompt, type ''Pkg.add("IJulia")''. That tells Julia to download and install the IJulia notebook software onto the computer. | ||
- | |||
- | <code julia> | ||
- | julia> Pkg.add("IJulia") | ||
- | INFO: Nothing to be done | ||
- | INFO: METADATA is out-of-date — you may not have the latest version of IJulia | ||
- | INFO: Use `Pkg.update()` to get the latest versions of your packages | ||
- | julia> | ||
- | </code> | ||
- | |||
- | **4.** At the Julia prompt, type ''Pkg.update()''. That tells Julia to download and install any required software updates. This might take a while and print otu lots of download & install information. | ||
- | |||
- | **5.** At the Julia prompt, type ''Pkg.update()'' | ||