Skip to main content

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 front side of a micro:bit

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:

  1. 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.

  2. Depending on your system, you may need some extra setup so that the kernel can talk to your micro:bit 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 the mbed driver.

  1. Install Jupyter.

  2. 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.

Metadata

Release files for ubit_kernel 0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ubit_kernel 0.3
File Interpreter ABI Platform Actions
ubit_kernel-0.3-py3-none-any.whl Python 3 none any Details for ubit_kernel-0.3-py3-none-any.whl

Release files / ubit_kernel-0.3-py3-none-any.whl

Download URL ubit_kernel-0.3-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
864689a789768f6d1c452b4e5353eedd9d8a7a860547e4950c7488af342175e1
BLAKE2b-256 checksum
How to use checksums
caa6f6dad38c2389ad0c0a439edadb2211f4766dfdf52596dbac74e4e51021a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for ubit_kernel 0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page