Tested on:RPi3 with Raspbian Jessie
Prerequisites:Raspberry Pi with Raspbian Jessie and internet connection (see steps 1-7 in the Introduction)

Installing Jupyter on a Raspberry Pi for Notebooks, Debugging and Data Analysis

Jupyter is based on the IPython IDE/debugger, but with massively extended functionality. Not only does Jupyter allow stepwise program execution, it’s also an interactive platform for data analysis and visualisation, especially when combined with Numpy and Pandas. Jupyter programs are stored as notebooks, which allow alternating descriptions with code in a beautiful representation. Notebooks are displayed in the browser and can be shared easily. Also, Jupyter uses a kernel system, which gives access to plenty of programming languages and even different versions of a language. Jupyter is great and calls for another tutorial… on an other day.
Luckily, the installation on a Raspberry Pi is easy; the performance on the RPi3 is, amazingly, reasonable.

Jupyter installation
For installing Jupyter, enter in the terminal

UPDATE: Python 3 notebook kernel
To use Python 3 notebook kernels, enter in the terminal

Run Jupyter
Start your new favorite tool by entering

This opens a file manager in a browser window, which allows opening .ipnb files as notebooks or creating new ones.

Jupyter on a Raspberry Pi 3

Jupyter on a Raspberry Pi 3

Jupyter Website: http://jupyter.org/
IPython and IPDB primer: http://www.knight-of-pi.org/fix-your-bugs-using-the-ipyhton-debugger-ipdb-on-a-raspberry-pi/

Knight of Pi

Johannes Bergs aka Knight of Pi. Diploma in Bioinformatics, some Webdesign and Python coding then. Living in the beautiful city of Vienna.


  1. pi@raspberrypi:~ $ jupyter notebook
    Traceback (most recent call last):
    File “/usr/lib/python3/dist-packages/traitlets/traitlets.py”, line 528, in get
    value = obj._trait_values[self.name]
    KeyError: ‘runtime_dir’

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “/usr/local/bin/jupyter-notebook”, line 8, in
    File “/usr/local/lib/python3.7/dist-packages/jupyter_core/application.py”, line 268, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
    File “/usr/lib/python3/dist-packages/traitlets/config/application.py”, line 657, in launch_instance
    File “”, line 2, in initialize
    File “/usr/lib/python3/dist-packages/traitlets/config/application.py”, line 87, in catch_config_error
    return method(app, *args, **kwargs)
    File “/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py”, line 1717, in initialize
    File “/usr/local/lib/python3.7/dist-packages/notebook/notebookapp.py”, line 1372, in init_configurables
    File “/usr/lib/python3/dist-packages/traitlets/traitlets.py”, line 556, in __get__
    return self.get(obj, cls)
    File “/usr/lib/python3/dist-packages/traitlets/traitlets.py”, line 535, in get
    value = self._validate(obj, dynamic_default())
    File “/usr/local/lib/python3.7/dist-packages/jupyter_core/application.py”, line 99, in _runtime_dir_default
    ensure_dir_exists(rd, mode=0o700)
    File “/usr/local/lib/python3.7/dist-packages/jupyter_core/utils/__init__.py”, line 13, in ensure_dir_exists
    os.makedirs(path, mode=mode)
    File “/usr/lib/python3.7/os.py”, line 221, in makedirs
    mkdir(name, mode)
    OSError: [Errno 28] No space left on device: ‘/home/pi/.local/share/jupyter/runtime’
    pi@raspberrypi:~ $
    Hello in the last command this error occurred

  2. Done in the terminal the 5 command lines of Jupyter installation.
    Then the: sudo pip3 install jupyter
    But then the sudo ipython3 kernelspec install-self fails: sudo: ipython3: command not found

    Help is much appreciated!

    • Hello!

      Actually, i think that line is no more necessary since the Py3 kernel is now integrated in recent versions of Jupyter.

  3. Even after the following steps, unable to run the jupyter notebook on Rpi. Error as follows:
    pi@raspberrypi:~ $ jupyter notebook
    Traceback (most recent call last):
    File “/usr/local/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py”, line 9, in
    import sqlite3
    File “/usr/local/lib/python3.6/sqlite3/__init__.py”, line 23, in
    from sqlite3.dbapi2 import *
    File “/usr/local/lib/python3.6/sqlite3/dbapi2.py”, line 27, in
    from _sqlite3 import *
    ModuleNotFoundError: No module named ‘_sqlite3’

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
    File “/usr/local/bin/jupyter-notebook”, line 6, in
    from notebook.notebookapp import main
    File “/usr/local/lib/python3.6/site-packages/notebook/notebookapp.py”, line 86, in
    from .services.sessions.sessionmanager import SessionManager
    File “/usr/local/lib/python3.6/site-packages/notebook/services/sessions/sessionmanager.py”, line 12, in
    from pysqlite2 import dbapi2 as sqlite3
    ModuleNotFoundError: No module named ‘pysqlite2’
    pi@raspberrypi:~ $

    • Hello,

      seems as if sqlite3 is missing.
      Please enter
      sudo apt-get install sqlite3 -y
      and retry. Maybe it’s no longer of the standard Raspbian apt packages.


Time limit is exhausted. Please reload CAPTCHA.