Skip to content

Jupyter

Official doc

jupyter

option

--config-dir
   Show the location of the config directory.

option

--data-dir
   Show the location of the data directory.

option

--paths
   Show all Jupyter directories and search paths.

option

nbextension list
   List notebook extensions

option

labextension list
   List lab extensions

option

notebook list
   List currently running notebook servers.
(usp) λ jupyter notebook list
Currently running servers:
http://localhost:8888/?token=e1782e715929665dbda4857ff96ad8efb855836a061434df :: D:\spl\projects\usp\machine-learning

option

kernelspec list
   List installed kernels

Example of output:

Available kernels:
      constellium-docs             C:\Users\<USER>\AppData\Roaming\jupyter\kernels\constellium-docs
      machine-learning-jh44uwir    C:\Users\<USER>\AppData\Roaming\jupyter\kernels\machine-learning-jh44uwir
      python3                      C:\Users\<USER>\.conda\envs\usp\share\jupyter\kernels\python3

You can use a kernel like that for example:

jupyter qtconsole --kernel=machine-learning-jh44uwir

Execute a notebook from command line

jupyter nbconvert --to notebook --execute --inplace mynotebook.ipynb

If you omit --inplace, a file *.notebook.ipynb is created instead.

More info (official doc)

Run Jupyter Lab like an App with Chrome

Note

jupyter notebook will open equally as an app

If you don't have the config file in C:\Users\<USER>\.jupyter, run:

jupyter lab --generate-config

Then edit the c.NotebookApp.browser in jupyter_notebook_config.py.

c.NotebookApp.browser = '"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --app=%s'