-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support interactive code exercises #17
Comments
There is now an official extension in https://github.com/r-wasm/quarto-live that we can use. Just need support for altair charts there r-wasm/quarto-live#44 |
r-wasm/quarto-live#44 has been implemented so we're good to go with using this extension for all our interactive exercises! |
That's great news! It is working for me in our textbook. Looks like we need to make a few changes since we are using pyodide cells.
|
That makes sense I believe. I think we can just have a hidden pyodide cell initiating anything we have already defined in a regular python cell (unless it is instructive to repeat it more explicitly).
Hmm, where did you see this? I believe it should work to read local files, see e.g. https://pyodide.org/en/stable/usage/file-system.html and jupyterlite/jupyterlite#119 (although specifically for jupyterlite). Having that said, I thnk it is completely fine that we run everything from Might also be helpful for us later pyodide/pyodide#4585 and posit-dev/py-shinylive#8
We shouldn't need this anywhere in pyodide I think. Were you thinking of anything specific where it might be needed? |
Great, I'll give those a try.
Currently it is used in the |
Closing as we are using interactive exercises since #32 |
It would be highly beneficial if students could code directly in the online book instead of copy pasting to their local environment. I believe that would allow them to be more immersed in the content and have a lower activation barrier than copy pasting and making sure they have all packages locally etc.
Hopefully we can do this via https://github.com/coatless-quarto/pyodide and https://github.com/coatless/quarto-webr, but currently blocked by coatless-quarto/pyodide#7. Relevant resource for book setup in pyodide https://github.com/coatless-quarto/pyodide/blob/main/examples/book/_quarto.yml
The text was updated successfully, but these errors were encountered: