====== How to do your homework in an IJulia notebook ====== 1. Download the HW3 IJulia notebook file: {{:gibson:teaching:fall-2015:hw3.ipynb|}} 2. Start Julia in the directory containing the notbook file. For me on Linux, it's like this. gibson@timaeus$ ls hw3.ipynb gibson@timaeus$ ~/packages/julia-0.4.0/bin/julia _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_) | Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "?help" for help. | | | | | | |/ _` | | | | |_| | | | (_| | | Version 0.4.0 (2015-10-08 06:20 UTC) _/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release |__/ | x86_64-unknown-linux-gnu julia> 3. Add the IJulia package to your julia installation, load the IJulia code into your running julia REPL, and then start a notebook. 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> Pkg.update() INFO: Updating METADATA... INFO: Computing changes... INFO: No packages to install, update or remove julia> using IJulia julia> notebook() 4. That should open up an IJulia notebook in a browser. Click on ''hw3.ipynb'' and start filling in the cells with Julia code. Hit "shift-enter" to execute the code after you've typed it in.