Jupyter Notebook

From RHS Wiki
Revision as of 21:47, 12 February 2022 by Rafahsolis (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install Jupyter

sudo pip install jupyterlab

Run

jupyter notebook

Add kernel

pip install ipykernel
(text_clustering) xe50582@jupiter:~$ python -m ipykernel install --user --name text_clustering --display-name "Text Clustering"

Remove kernel

ipython kernelspec uninstall kernel_name

Service file

[Unit]
Description=Jupyter Notebook

[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/usr/local/bin/jupyter notebook --config=/home/xe50582/.jupyter/jupyter_notebook_config.py
User=xe50582
Group=xe50582
WorkingDirectory=/home/xe50582/Notebooks/
Restart=always
RestartSec=10
#KillMode=mixed

[Install]
WantedBy=multi-user.target