User Tools

Site Tools


gibson:teaching:spring-2014:iam950:howto-julia-notebook

How to do your homework in an IJulia notebook

1. Download the HW3 IJulia notebook file: hw3.ipynb

2. Start Julia in the directory containing the notebook file. For me on Linux, it's like this.

 
gibson@timaeus$ ls
IAM950-HW1.ipynb
gibson@timaeus$ pwd
/home/gibson/professional/teaching/iam950/hw1
gibson@timaeus$ ls
IAM950-HW1.ipynb
gibson@timaeus$ ~/packages/julia-0.4.3/bin/julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.3 (2016-01-12 21:37 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  x86_64-unknown-linux-gnu

julia> Pkg.add("IJulia")
INFO: Nothing to be done

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.

gibson/teaching/spring-2014/iam950/howto-julia-notebook.txt · Last modified: 2016/02/18 11:33 by gibson