Table des matières

,

Notes Jupyter iPython Julia IJulia

jupyter / iPython avec Julia

Voir

Voir aussi :

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

OSError: [Errno 99] Cannot assign requested address

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

Erreur: IOPub data rate exceeded.

IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
`--NotebookApp.iopub_data_rate_limit`.

Solution

jupyter-notebook --NotebookApp.iopub_data_rate_limit=1.0e10