Python/Jupyter Installation

From Wiki
< Python
Revision as of 13:18, 21 March 2021 by Marcluer (talk | contribs) (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…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installation

apt install python3-pip python3-setuptools
pip3 install --upgrade pip
pip3 install jupyter

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