Python/Jupyter Installation: Difference between revisions
< Python
(Die Seite wurde neu angelegt: „== Installation == <pre class='bash'> apt install python3-pip python3-setuptools pip3 install --upgrade pip pip3 install jupyter </pre> == Config == * full wi…“) |
m (→Linux) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Installation = | |||
<pre class= | <pre class="bash"> | ||
apt install python3-pip python3-setuptools | apt install python3-pip python3-setuptools | ||
python -m pip install --upgrade pip | |||
python -m pip install jupyterlab | |||
</pre> | |||
= Jupyter Lab = | |||
== Windows 10 == | |||
* Install Python from Windows store | |||
* install jupyterlab using pip | |||
* start jupyterlab | |||
<pre class="bash"> | |||
python -m jupyterlab --no-browser --LabApp.token="" | |||
</pre> | |||
== Linux == | |||
<pre class="bash"> | |||
On Baremetal: | |||
jupyter lab --no-browser --LabApp.token='' | |||
python -m jupyterlab --no-browser --LabApp.token='' | |||
In Docker: | |||
jupyter lab --no-browser --LabApp.token='' --allow-root --notebook-dir=/srv/jupyter --ip=0.0.0.0 --port=80 | |||
</pre> | </pre> | ||
== Extensions == | |||
<pre class="bash"> | |||
jupyter labextension install @aquirdturtle/collapsible_headings @krassowski/jupyterlab-lsp --no-build | |||
jupyter lab build | |||
</pre> | |||
= Jupyter Notebook = | |||
== Config == | == Config == | ||
* full width: | * full width: | ||
Line 54: | Line 81: | ||
* Toggle all line numbers | * Toggle all line numbers | ||
== Other Kernels == | == Other Kernels == | ||
* scijava-jupyter-kernel | * scijava-jupyter-kernel | ||
** https://github.com/scijava/scijava-jupyter-kernel | ** https://github.com/scijava/scijava-jupyter-kernel | ||
= Jupyter Hub = | |||
* https://jupyterhub.readthedocs.io/en/stable/quickstart-docker.html |
Latest revision as of 18:32, 28 June 2021
Installation
apt install python3-pip python3-setuptools python -m pip install --upgrade pip python -m pip install jupyterlab
Jupyter Lab
Windows 10
- Install Python from Windows store
- install jupyterlab using pip
- start jupyterlab
python -m jupyterlab --no-browser --LabApp.token=""
Linux
On Baremetal: jupyter lab --no-browser --LabApp.token='' python -m jupyterlab --no-browser --LabApp.token='' In Docker: jupyter lab --no-browser --LabApp.token='' --allow-root --notebook-dir=/srv/jupyter --ip=0.0.0.0 --port=80
Extensions
jupyter labextension install @aquirdturtle/collapsible_headings @krassowski/jupyterlab-lsp --no-build jupyter lab build
Jupyter Notebook
Config
- full width:
- ~/.jupyter/custom/custom.css
.container { width:100% !important; }
- autostart from rc.local
sudo -u pi /usr/local/bin/jupyter-notebook --config=/home/pi/.jupyter/jupyter_notebook_config.py
- create config file
jupyter notebook --generate-config
- insecure access without token/password (/home/pi/.jupyter/jupyter_notebook_config.py)
c.NotebookApp.ip = '*' c.NotebookApp.notebook_dir = '/srv/Python' c.NotebookApp.open_browser = False c.NotebookApp.password = '' c.NotebookApp.token = ''
nbextensions
pip3 install jupyter_contrib_nbextensions jupyter contrib nbextension install --user
- codefolding
- Codefolding in editor
- Collapsible Headings
- Table of contents
- Variable inspector
- Toggle all line numbers
Other Kernels
- scijava-jupyter-kernel