Skip to main content

17. Full code appendix

The code below matches the contents of the files in demos/. Save each code block under the corresponding filename to run it. test_demos.py and the two Python teaching modules must live in the same directory.

17.1 runtime_demo.py

17.2 context_memory_demo.py

17.3 ptc_demo.mjs

17.4 computer_loop_demo.py

17.5 app_server_client.py

17.6 live_api.py

17.7 steering_api.mjs

17.8 test_demos.py

17.9 test_live_api.py