Skip to content

Bonsai python Scripting Help #2027

Discussion options

You must be logged in to vote

Solved: Here is a brief run down for getting python3 working with bonsai on windows 11

  1. Use CreateRuntime, no connections, leave PythonHome blank, windows will auto select the path, select your ScriptPath and put your .py file in the same folder as the bonsai program

  2. Exec to execute python functions defined in your .py file. Leave Module blank and Script put function_to_run() where function_to_run() is defined in th .py file

  3. ObserveOnGIL with each Set (and I would assume get) operation

*python transform is in many doc/examples but doesn't appear to be supported in the standard python scripting library (maybe in iron python? idk)

Most useful sources: Bonsai crash course -> https://w…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chiyu1203
Comment options

@Michael-132-wq
Comment options

@chiyu1203
Comment options

Answer selected by Michael-132-wq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants