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

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

Links
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.

2 Comments

  1. 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.

Comment

Time limit is exhausted. Please reload CAPTCHA.