You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR #175 refactored the base transcrypt/python files by moving them from the project's root directory to transcrypt's templates one (commit 0c29599). But there are further changes to make pyp5js internal API more consistent independently of the interpreter that's being used to render the sketch.
Currently, pyodide doesn't require the from pyp5js import * while transcrypt does. The idea of this issue is to remove this required import by updating transcrypt's target sketch to look more like pyodide's one. To do so, we'll have to update the target sketch file to, instead of importing the source sketch, inline the sketch code with all the other required code. The same way pyodide does here.
This will make it easier to reduce the duplication of the Python-p5js wrapper code.
checklist
Remove import
Recompile all transcrypt examples
New major versions
The text was updated successfully, but these errors were encountered:
The PR #175 refactored the base transcrypt/python files by moving them from the project's root directory to transcrypt's templates one (commit 0c29599). But there are further changes to make pyp5js internal API more consistent independently of the interpreter that's being used to render the sketch.
Currently, pyodide doesn't require the
from pyp5js import *
while transcrypt does. The idea of this issue is to remove this required import by updating transcrypt's target sketch to look more like pyodide's one. To do so, we'll have to update the target sketch file to, instead of importing the source sketch, inline the sketch code with all the other required code. The same way pyodide does here.This will make it easier to reduce the duplication of the Python-p5js wrapper code.
checklist
The text was updated successfully, but these errors were encountered: