2013年10月24日 星期四

IJulia

source from: https://github.com/JuliaLang/IJulia.jl

Using Julia language in IPython notebook.

Needs:
IPython >= 1.0
Julia >= 0.2

Installation:

open Julia and in command line input Pkg.add("IJulia") as showed in below.
julia> Pkg.add("IJulia")

Running:

in your command line input
ipython notebook --profile julia

Password:
first, open IPython and type the following code in IPython

In [1]: from IPython.lib import passwd
In [2]: passwd()
Enter password: abc (password is not showed)
Verify password: abc
Out[2]: 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'

you can get the hashed password 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'

and then open the file ~/.ipython/profile_julia/ipython_notebook_config.py
in window it was put in your USER folder/.ipython/profile_julia/ipython_notebook_config.py

open ipython_notebook_config.py and search c.NotebookApp.password = u''
put the hashed password between ' and ' . the example is 
c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'

then you can use your password login IJulia on web

沒有留言:

張貼留言