Python/Jupyter: Difference between revisions

From Wiki
No edit summary
Line 9: Line 9:
<blockquote>
<blockquote>
<pre>
<pre>
/usr/local/bin/jupyter-notebook --config=/home/pi/.jupyter/jupyter_notebook_config.py --allow-root
sudo -u pi /usr/local/bin/jupyter-notebook --config=/home/pi/.jupyter/jupyter_notebook_config.py
</pre>
</pre>
</blockquote>
</blockquote>

Revision as of 15:19, 20 November 2017

Installation

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

Config

  • autostart from rc.local
sudo -u pi /usr/local/bin/jupyter-notebook --config=/home/pi/.jupyter/jupyter_notebook_config.py


  • 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 = ''