Skip to content
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

update pyodide sandbox version #8

Merged
merged 1 commit into from
Aug 3, 2023
Merged

update pyodide sandbox version #8

merged 1 commit into from
Aug 3, 2023

Conversation

paulfitz
Copy link
Member

@paulfitz paulfitz commented Aug 2, 2023

Use latest grist-core, which has significant improvements to the pyodide sandbox packaging. The main advantages are less delay before a document becomes editable, and less delay at the start of imports.

Use latest grist-core, which has significant improvements to the
pyodide sandbox packaging.
@paulfitz
Copy link
Member Author

paulfitz commented Aug 3, 2023

@alexmojaki do you happen to know if there's an easy way to pick up the standard-library-as-pyc variant? Would it be worth it? Pyodide is currently used like this: https://github.com/gristlabs/grist-core/blob/d12d971162c451dd6fb0b42878f2aec50a351e8f/sandbox/pyodide/pipe.js#L4

@paulfitz paulfitz merged commit efebd34 into main Aug 3, 2023
@paulfitz paulfitz deleted the update-pyodide branch August 3, 2023 11:15
@alexmojaki
Copy link

Try loadPyodide({indexURL: 'https://cdn.jsdelivr.net/pyodide/v0.23.0/pyc/', ...})

@paulfitz
Copy link
Member Author

paulfitz commented Aug 3, 2023

Try loadPyodide({indexURL: 'https://cdn.jsdelivr.net/pyodide/v0.23.0/pyc/', ...})

Would this introduce a new dependency on the network being available, or is that dependency already there in pyodide?

@alexmojaki
Copy link

I think it would. Does grist-electron work offline?

@paulfitz
Copy link
Member Author

paulfitz commented Aug 3, 2023

Yes, grist-electron works offline, and that is a useful property in a desktop app. So I'll skip the standard-library-pyc part for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants