[x] Basic static NextJS/React app with Typescript, TailwindCSS.
[x] Basic pyodide functioning using library attached to JS window when you press the button it will add 1+1 = 2 in Python into the console as shown in the screenshot below.
We modeled it on this repository which used this template. Thanks to all who helped in the ensemble session! We'll get your emails for the Co-Authored commit next time.
~Try the native import as suggested by this SO question now that I put the files in the correct place (/public/)~
~will need to uncomment some loadPyodide code showing JS where that is: ~
~If that works, remove the <Script/> (docs) and comments. Otherwise keep as-is but remove comments.~
~With either working import approach, make a component maybe like this code style to display the python output from a .py file in a react component instead of in console.~
window
when you press the button it will add 1+1 = 2 in Python into the console as shown in the screenshot below./public/
)~loadPyodide
code showing JS where that is: ~<Script/>
(docs) and comments. Otherwise keep as-is but remove comments.~import
approach, make a component maybe like this code style to display the python output from a.py
file in a react component instead of in console.~