Notes Jupyter iPython Julia IJulia

jupyter / iPython avec Julia

Voir

https://linuxfr.org/news/python-pour-les-sciences-une-presentation

http://people.duke.edu/~ccc14/sta-663/Jupyter.html

http://ihrke.github.io/jupyter.html

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

julia-factcheck https://github.com/JuliaLang/FactCheck.jl

Voir aussi :

sagemath

sudo apt-get install julia julia-doc pip3 install --user jupyter export PATH=$PATH:~/.local/bin/ echo 'export PATH=$PATH:~/.local/bin/' >> ~/.bashrc

$ julia
julia>

Dans l'intérpreteur Julia

Pkg.add("IJulia")

$ ls ~/.local/share/jupyter/kernels/
julia-0.3

Pour lancer IJulia

jupyter-qtconsole --style monokai --kernel=julia-0.3

Ou

julia

using IJulia
notebook()

Pb

jupyter-notebook

Traceback (most recent call last):
File "/home/jean/.local/bin/jupyter-notebook", line 11, in <module>
sys.exit(main())
File "/home/jean/.local/lib/python3.4/site-packages/jupyter_core/application.py", line 267, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/home/jean/.local/lib/python3.4/site-packages/traitlets/config/application.py", line 591, in launch_instance
app.initialize(argv)
File "<string>", line 2, in initialize
File "/home/jean/.local/lib/python3.4/site-packages/traitlets/config/application.py", line 75, in catch_config_error
return method(app, *args, **kwargs)
File "/home/jean/.local/lib/python3.4/site-packages/notebook/notebookapp.py", line 1007, in initialize
self.init_webapp()
File "/home/jean/.local/lib/python3.4/site-packages/notebook/notebookapp.py", line 873, in init_webapp
self.http_server.listen(port, self.ip)
File "/home/jean/.local/lib/python3.4/site-packages/tornado/tcpserver.py", line 126, in listen
sockets = bind_sockets(port, address=address)
File "/home/jean/.local/lib/python3.4/site-packages/tornado/netutil.py", line 187, in bind_sockets
sock.bind(sockaddr)
OSError: [Errno 99] Cannot assign requested address

Solution

jupyter-notebook --ip=127.0.0.1

Le port 8888 est déjà utilisé, mais un “bindant” sur 127.0.0.1 ça passe