Difference between revisions of "Jupyter"

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search
Line 16: Line 16:
  
 
* Install the Kernal that allows you to connect to the Board via USB/REPL, see https://github.com/goatchurchprime/jupyter_micropython_kernel/
 
* Install the Kernal that allows you to connect to the Board via USB/REPL, see https://github.com/goatchurchprime/jupyter_micropython_kernel/
 +
<syntaxhighlight lang="Bash">
 +
pip install jupyter_micropython_kernel
 +
python -m jupyter_micropython_kernel.install
 +
</syntaxhighlight>
 +
 
* Connect the device physically to the computer
 
* Connect the device physically to the computer
 
* Have as first command to the connection to serial port
 
* Have as first command to the connection to serial port

Revision as of 09:27, 11 June 2024

Jupyter notebook as development ennvironment for MicroPython

This explains how to configure a local Jupyter Notebook to develop MicroPython code on an ESP32 or ESP8266 device.

Steps to set it ip

In this example, we use the Arduino Nano RP2040 Connect and an Arduino Nano ESP32.

The basic steps are

pip install jupyterlab
pip install jupyter_micropython_kernel
python -m jupyter_micropython_kernel.install
  • Connect the device physically to the computer
  • Have as first command to the connection to serial port
  • Program the board directly in the notebook, see the output (including sensor streams) directly in the notebook

Web pages and Tutorials


Jupyter01.PNG