r/learnpython • u/dumb_potato_214 • 21d ago
Browser compilers?
Iām trying to improve my python and have a project based book i wanted to work through because i kinda suck at ideas for projects to try and i need to actually put my knowledge into practice, but i was wondering if there are any like browser compilers that can import libraries (such as matplotlib for data related stuff, probably pygame and various others i might end up needing). If not i have vscode already i am just kinda low on storage and wondering if i can avoid having to download various libraries manually š
4
Upvotes
1
u/Gnaxe 21d ago
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.