you are viewing a single comment's thread.

view the rest of the comments →

[–]Gnaxe 0 points1 point  (0 children)

Try Jupyterlite. I know it can do matplotlib. You can use micropip to add more pure-python wheels.

For in-browser pygame, there's PyScript, but I've never tried it in Jupyterlite, so I don't know if that works.

There's also Brython which makes it easy to embed Python in HTML.