====== 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/30 10:27] gibson [Download and install Julia binaries onto a USB stick, using a UNH computer] |
gibson:teaching:fall-2016:math753:installing-julia [2016/09/01 07:23] (current) gibson [Run Julia on JuliaBox] |
||
---|---|---|---|
Line 4: | Line 4: | ||
* Download and install Julia binaries on your own laptop. | * Download and install Julia binaries on your own laptop. | ||
- | * From a UNH computer, such as the ones in Kingsbury N129, download and install Julia binaries onto a USB stick. | + | * From a UNH computer, download and install Julia binaries onto a USB stick. |
* Log on to [[http://www.juliabox.com|JuliaBox]] using google credentials. | * Log on to [[http://www.juliabox.com|JuliaBox]] using google credentials. | ||
* Download the Julia source code and compile it. | * Download the Julia source code and compile it. | ||
Line 16: | Line 16: | ||
We have not installed Julia on UNH computers, including the ones in Kingsbury N129, for several reasons. One reason is that Julia is evolving rapidly enough that installing and updating across campus is impractical. But more importantly, I think it's best for you, the student, to get some hands-on experience in the free software ecosystem, and to retain as much control as possible of your software environment. | We have not installed Julia on UNH computers, including the ones in Kingsbury N129, for several reasons. One reason is that Julia is evolving rapidly enough that installing and updating across campus is impractical. But more importantly, I think it's best for you, the student, to get some hands-on experience in the free software ecosystem, and to retain as much control as possible of your software environment. | ||
- | 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-calss 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/]]. | + | 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. |
+ | |||
+ | |||
+ | ====== The Julia REPL ====== | ||
+ | |||
+ | The simplest way to run Julia is via the Julia REPL (read-eval-print-loop). Once you install Julia, you can start the REPL by double-clicking on the executable file (Windows, Mac OS X, or Linux) by calling Julia from the command-line (Linux). | ||
+ | |||
+ | If you are running Julia on JuliaBox, you will need to click the Console tab at the top. You will see a Linux command line prompt like this ''juser@juliabox:~$''. Type ''julia'' after that prompt and hit "enter". | ||
+ | |||
+ | You should see something like this | ||
+ | |||
+ | <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 | ||
+ | |||
+ | </code> | ||
+ | |||
+ | The ''julia>'' at the end is the Julia prompt. Type an expression there (e.g. 3+4) and hit the enter key. You should see this. | ||
+ | |||
+ | <code> | ||
+ | julia> 3+4 | ||
+ | 7 | ||
+ | |||
+ | julia> | ||
+ | |||
+ | </code> | ||
+ | |||
+ | ----- | ||