How to import python into blocks? #2828
|
I recently saw that there is functionality to import python code into blocks which I am very excited about to do some PID tuning for my hub for FLL. However, I cannot find the import block. I tried following the example here: https://github.com/orgs/pybricks/discussions/1893 I created team_python.py but still can't find the 'from team_python import function'. I tried running from the app, pybricks.com and beta.pybricks.com. Does this need to be enabled somehow?
|
Answered by
laurensvalk
Sep 17, 2026
Replies: 1 comment 2 replies
|
The blocks have changed a little. They can still do the same (and more). You can find them on the variables category. You can import functions like the ones you've made, and even classes. |
2 replies
Answer selected by
laminar1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


The blocks have changed a little. They can still do the same (and more).
You can find them on the variables category. You can import functions like the ones you've made, and even classes.