Technical Implementation Details - Project Help - VR Python

VEXcode VR uses a modified version of Python runtime called Pyodide to support Python programming in browsers.

VEXcode VR supports many of the Python 3.8 Standard library features such as:

Note: Not all the Standard Library features and API are tested in VEXcode VR yet. Some of the standard Python language features are not supported in VEXcode VR due to the nature of running Python in a browser runtime environment.

Examples of differences from standard Python:

  • Local File System and Database Access, Multi-threading, Networking, Inter-Process communication will not work.
  • Some of the File API will work (ex: Create/Open/Write) on top of the Browser's virtual file system. But these virtual “files” reside in the browser’s volatile memory, and they disappear when you navigate away from the VEXcode VR page.
  • brain.print(...) should be used instead of print(...) 
  • As Python threading is not supported, VEXcode VR supports a custom vr_threads which closely simulates co-operative tasks. 

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: