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
Is your feature request related to a problem? Please describe.
Infinite loops currently cause the entire website to freeze.
For example, the following snippet of code:
Describe the solution you'd like
There are a few options:
Implement some way of making sure that the code times out after a certain period of time.
This could be by using some built-in function in Pyodide itself.
If we find some way to do it using Javascript as well, I would be fine with the solution.
Run Pyodide in a webworker so that slow Python code will not affect the website's responsiveness. (This solution is definitely preferrable since the user won't have to wait for 5 seconds or whatever the timeout time is.)
hwelsters
changed the title
feat (webapp): make sure that Pyodide code times out after a certain period of time
fix (webapp): make sure that Pyodide code times out after a certain period of time
Dec 6, 2023
hwelsters
changed the title
fix (webapp): make sure that Pyodide code times out after a certain period of time
fix (webapp): make sure that Pyodide doesn't affect responsiveness.
Jan 11, 2024
Is your feature request related to a problem? Please describe.

Infinite loops currently cause the entire website to freeze.
For example, the following snippet of code:
Describe the solution you'd like
There are a few options:
This could be by using some built-in function in Pyodide itself.
If we find some way to do it using Javascript as well, I would be fine with the solution.
Directions
In terms of where to start,
pyodide-provider.tsx
is where Pyodide is loaded and where there are functions to run Python code.https://pyodide.org/en/stable/usage/webworker.html
The text was updated successfully, but these errors were encountered: