Getting Started Local Install
Last updated
Was this helpful?
Last updated
Was this helpful?
There are some requirements for local installation:
Have access to the repos (mbpy endpoints and mbpy) and accepted the invites
Authenticated with github
Install utility. This will authenticate your device with github.
On Mac, you can use to install it: brew install gh
Once the gh
command is installed, use it to login: gh auth login
Use HTTPS
method, and either choose to login via browser or use a token
Alternatively, you could
Have pipx
On Mac, brew install pipx
and then pipx ensurepath
On Linux, python3 -m pip install --user pipx
and then python3 -m pipx ensurepath
Remember you have to be logged in to github for this to work gh auth login
as above:
You may need to specify exactly which python version to use, which you can by pass an explicit path to the python version, as demonstrated here:
pipx install git+https://github.com/classroomtechtools/mbpy.git --python $(which python3.11)
Every time you want to add a school to mbpy, it needs to be configured. Learn how here:
To develop mbpy or expand its functionality, use poetry:
After that, you can use poetry shell
from that directory, add breakpoints etc and hack away. Use mpby
commands like usual.