Skip to content

Detect Pyodide to avoid get_asyncgen_hooks#179

Merged
almarklein merged 2 commits intomainfrom
pyodide-shortcut
Feb 17, 2026
Merged

Detect Pyodide to avoid get_asyncgen_hooks#179
almarklein merged 2 commits intomainfrom
pyodide-shortcut

Conversation

@almarklein
Copy link
Member

@almarklein
Copy link
Member Author

@Vipitis the hang makes a lot of sense! If sys.get_asyncgen_hooks() produces None, then the sleep call is simply ignored. This means that the scheduling breaks (it uses sleep), it simply stops rendering.

@almarklein almarklein merged commit 14bb200 into main Feb 17, 2026
20 checks passed
@almarklein almarklein deleted the pyodide-shortcut branch February 17, 2026 12:33
@almarklein
Copy link
Member Author

@Vipitis do you need a release to be able to test this for Pyodide?

@Vipitis
Copy link
Contributor

Vipitis commented Feb 17, 2026

I can grab the wheel myself and test locally. plus the latest branch of the docs could technically serve a newer wheel...

will have time later today

@Vipitis
Copy link
Contributor

Vipitis commented Feb 17, 2026

I tested a wheel from main with a couple examples in wgpu and pygfx and seems to work now. (I didn't need anymore changes to _async.py from pygfx/wgpu-py#795 versus what is already in pygfx/wgpu-py#753)

@almarklein
Copy link
Member Author

That's good to hear!

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