-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add run all code cells / autorun #5
Comments
If there are multiple code cells in a page, if a user runs each cell in turn, is state propagated from one cell to the next? eg if cell 1: |
To answer my own question, the state persists within a page. Next question to try: if a single |
The extension treats all code cells as belonging to the same global environment. So, on a given page, defining a variable like https://quarto.thecoatlessprofessor.com/pyodide/qpyodide-code-cell-demo.html#strings Regarding sharing state between pages, that's not possible. Each page gets instantiated through a similar template. So, we can't share the state from Page A with Page B. The closest to "sharing state" would be to allow the other page to source a script in use on the prior page. |
Does browser storage work at domain or page level? If domain level, browser storage could be used to hold state that could be dunped from one page into storage then access by another page on load. |
From
u/jfcg
on r/Python:We support this over in
quarto-webr
, but not here yet.I think this was due to the DOM hiccup when loading both Monaco and Pyodide.
The text was updated successfully, but these errors were encountered: