nodemcu_kernel

A jupyter notebook kernel for communicating with micropython on a nodemcu


Keywords
jupyter, notebook, kernel, micropython, nodemcu
License
Other
Install
pip install nodemcu_kernel==0.1

Documentation

This is a jupyter notebook kernel for communicating with a micropython enabled nodemcu attached via USB from within a jupyter notebook.

This work has been directly derived from the ubit_kernel support for the BBC micro:bit done by Thomas Kluyver which you can find here.

MicroPython is a variant of the Python programming language that runs on such tiny computers. It's a powerful way to program the NodeMcu. For tutorials and reference information, see the MicroPython documentation.

Jupyter is a set of tools for interactive programming. This package allows Jupyter interfaces to run MicroPython code directly on the NodeMcu

Set-up steps:

  1. Plug in your NodeMcu and ensure it has MicroPython on it. To do this have a look at this tutorial, and follow the instructions there to flash it onto the NodeMcu.

  2. Depending on your system, you may need some extra setup so that the kernel can talk to your NodeMcu using a serial port.

    • On Linux, you may need to add yourself to the dialout group. Run sudo usermod -a -G dialout <your-username>, then log out and in again.
    • On Windows, you need to install a suitable USB to serial driver first.
  3. Install Jupyter.

  4. Install this package:

    pip install nodemcu_kernel
    python3 -m nodemcu_kernel.install
    

When you start the Jupyter Notebook, there should be a NodeMcu option in the menu to create a new notebook.