Editing Jupyter

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
#REDIRECT [[Jupyter Notebook]]
+
 
 +
= Jupyter Notebook as 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)
 +
<syntaxhighlight lang="Bash">
 +
pip install jupyterlab
 +
</syntaxhighlight>
 +
 
 +
* 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
 +
* 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 ==
 +
* https://towardsdatascience.com/micropython-on-esp-using-jupyter-6f366ff5ed9
 +
 
 +
 
 +
[[File:Jupyter01.PNG]]

Please note that all contributions to Sketching with Hardware at LMU Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see My wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)