https://github.com/pybricks/pybricksdev-demo
Interact with multiple Pybricks hubs in a Jupyter-Notebook using pybricksdev
https://github.com/pybricks/pybricksdev-demo
Last synced: 9 months ago
JSON representation
Interact with multiple Pybricks hubs in a Jupyter-Notebook using pybricksdev
- Host: GitHub
- URL: https://github.com/pybricks/pybricksdev-demo
- Owner: pybricks
- License: mit
- Created: 2020-08-07T09:37:31.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-30T12:04:36.000Z (over 5 years ago)
- Last Synced: 2025-07-21T23:48:43.139Z (11 months ago)
- Language: Jupyter Notebook
- Size: 135 KB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pybricksdev-demo
Interact with multiple Pybricks hubs in a Jupyter-Notebook using
[pybricksdev](https://github.com/pybricks/pybricksdev).
# Requirements
- Requires Python 3.8 or higher.
- Requires [Poetry](https://python-poetry.org/).
- Requires one or more hubs that can run Pybricks programs.
# Installation
```
git clone https://github.com/pybricks/pybricksdev-demo.git
cd pybricksdev-demo
poetry install
```
# Usage
- Start the Jupyter-notebook server:
```
poetry run jupyter-notebook
````
- This starts a browser session with the Jupyter-Notebook interface.
- Open the simplest demo: `basics.ipnb`.
- Run all cells. This will connect to a Powered Up hub with Pybricks firmware,
and run a program on it.
- The process for Pybricks on ev3dev is very similar, as shown in some of the other demo notebooks.
- If you are not yet familiar with Jupyter-Notebook, click `File > New Notebook` to practice in an empty Notebook.