Skip to content

jupyter notebook support to communicate with micropython on a NodeMcu

License

Notifications You must be signed in to change notification settings

jneines/nodemcu_kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

jupyter notebook support to communicate with micropython on a NodeMcu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages