A Jupyter kernel for MicroPython on the BBC micro:bit
Project description
The micro:bit is a single-board computer designed by the BBC as a way to learn about programming. It is being delivered to all year seven students (11-12) in the UK.
The micro:bit has a 5x5 grid of red LEDs, two buttons, an accelerometer and a compass. There are also pins to connect components like motors or speakers.
MicroPython is a variant of the Python programming language that runs on such tiny computers. It’s a powerful way to program the micro:bit. For tutorials and reference information, see BBC micro:bit MicroPython.
Jupyter is a set of tools for interactive programming. This package allows Jupyter interfaces to run MicroPython code directly on the micro:bit.
Set-up steps:
Plug in your micro:bit and ensure it has MicroPython on it. To do this, create a Python script in the web editor, and follow the instructions there to flash it onto the micro:bit. It doesn’t matter for this what the script does.
Install this package:
pip install ubit_kernel python3 -m ubit_kernel.install
When you start the Jupyter Notebook, there should be a micro:bit option in the menu to create a new notebook.
To use the kernel from other Jupyter interfaces, start them with --kernel ubit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for ubit_kernel-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd2c8b3bbeea04948bf849c123326296dcbf683a693b5a5d1dfdfe3decd0e34c |
|
MD5 | c27dd2a8f4e926f5abd40d9b12eec053 |
|
BLAKE2b-256 | f9d45208fc426f50806422dfeb89387d36ac0c6b6233207aa0d9a6a644ea1763 |