-
Hi, I'm reading the tutorials, I found the tutorials may have a gap in terms of instructions on how to use Imported Mode. From reading other parts of the documentation I understood Imported Mode at this point works only on Jupyter notebooks. You might want to investigate how Bernardo, first wih transcrypt and now following Luca Damasco's Pyodide proof of concept, is working on github.com/berinhard/pyp5js with the constants and "system variables" in the global namespace ... Also, do you think we could manage a Google Collaboratory notebook or a http://MyBinder.org link with the environment ready for teaching? Cheers, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 12 replies
-
Now that you've installed the kernel, is imported mode working for you? For Mac users (you use a Mac?) py5 needs to be run using Jupyter because you need the For everyone else, there's also a command line tool called
Hmmm, I hadn't heard of Pyodide, and have not looked at the pyp5js source code. It looks like this is taking a totally different approach from what I am doing here. The hardest part about py5's imported mode was getting the dynamic variables like
This is at the top of my priority list. Stay tuned... |
Beta Was this translation helpful? Give feedback.
Now that you've installed the kernel, is imported mode working for you?
For Mac users (you use a Mac?) py5 needs to be run using Jupyter because you need the
%gui osx
magic. See the Special Notes for Mac Users for more info.For everyone else, there's also a command line tool called
run_sketch
that takes a file containing imported mode code as an argument. I haven't documented that yet though, and don't think it is that convenient. Using Jupyter is probably the best option.