Difference between revisions of "Jupyter Notebook"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "== Remove kernel == <syntaxhighlight lang="bash"> ipython kernelspec uninstall kernel_name </syntaxhighlight>") Tag: visualeditor |
Rafahsolis (talk | contribs) m Tag: visualeditor |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | == Remove kernel == | + | == Install Jupyter == |
| + | <syntaxhighlight lang="bash"> | ||
| + | sudo pip install jupyterlab | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == Run == | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | jupyter notebook | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Add kernel== | ||
| + | <syntaxhighlight lang="bash"> | ||
| + | pip install ipykernel | ||
| + | (text_clustering) xe50582@jupiter:~$ python -m ipykernel install --user --name text_clustering --display-name "Text Clustering" | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Remove kernel== | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
ipython kernelspec uninstall kernel_name | ipython kernelspec uninstall kernel_name | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | ==Service file== | ||
| + | <syntaxhighlight lang="text"> | ||
| + | [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 | ||
| + | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 21:47, 12 February 2022
Install Jupyter[edit]
sudo pip install jupyterlab
Run[edit]
jupyter notebook
Add kernel[edit]
pip install ipykernel
(text_clustering) xe50582@jupiter:~$ python -m ipykernel install --user --name text_clustering --display-name "Text Clustering"
Remove kernel[edit]
ipython kernelspec uninstall kernel_name
Service file[edit]
[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