Jupyter Notebook: Difference between revisions

From Sketching with Hardware at LMU Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:


* Connect the device physically to the computer
* Connect the device physically to the computer
* Have as first command to the connection to serial port
* The first command should be the connection to the serial port
<syntaxhighlight lang="Python">
%serialconnect --port=/dev/tty.usbmodem143101 # For Windows the port looks like COM8
</syntaxhighlight>
 
* Program the board directly in the notebook, see the output (including sensor streams) directly in the notebook
* Program the board directly in the notebook, see the output (including sensor streams) directly in the notebook


Line 31: Line 35:
[[File:Jupyter01.PNG]]
[[File:Jupyter01.PNG]]


[[Category:MicroPython]]
[[Category:Arduino Nano RP2040 Connect]]
[[Category:Arduino Nano RP2040 Connect]]
[[Category:IDEs]]

Latest revision as of 15:26, 12 June 2024

Jupyter Notebook as the development environment for MicroPython[edit]

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

Step-by-Step Setup[edit]

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

Web pages and Tutorials[edit]