Outils pour utilisateurs

Outils du site


tech:jupyter_ipython_julia_ijulia

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
tech:jupyter_ipython_julia_ijulia [2025/03/24 15:06] – créée - modification externe 127.0.0.1tech:jupyter_ipython_julia_ijulia [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Julia}}
 +
 +# 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 :
 +* nteract
 +* sagemath
 +
 +~~~bash
 +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
 +~~~bash
 +jupyter-qtconsole --style monokai --kernel=julia-0.3
 +~~~
 +
 +Ou
 +~~~bash
 +julia
 +~~~
 +
 +~~~
 +using IJulia
 +notebook()
 +~~~
 +
 +## Pb
 +
 +~~~bash
 +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
 +~~~bash
 +jupyter-notebook --ip=127.0.0.1
 +~~~
 +
 +Le port 8888 est déjà utilisé, mais un "bindant" sur 127.0.0.1 ça passe
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki