Jupyter Notebook
Jupyter Notebook as the development environment for MicroPython
This explains how to configure a local Jupyter Notebook to develop MicroPython code on an ESP32 or ESP8266 device.
Step-by-Step Setup
In this example, we use the Arduino Nano RP2040 Connect and an Arduino Nano ESP32.
The basic steps are
- Install Python (version 3.6 and above) on your computer (or update to the latest version), see https://www.python.org/
- Install Jupyter Notebooks on your computer locally (see the documentation at https://jupyter.org/install)
pip install jupyterlab
- Install the Kernal that allows you to connect to the Board via USB/REPL, see https://github.com/goatchurchprime/jupyter_micropython_kernel/
pip install jupyter_micropython_kernel
python -m jupyter_micropython_kernel.install
- Connect the device physically to the computer
- The first command should be the connection to the serial port
%serialconnect --port=/dev/tty.usbmodem143101 # For Windows the port looks like COM8
- Program the board directly in the notebook, see the output (including sensor streams) directly in the notebook