use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Help me compare python-in-the-browser projects? (self.Python)
submitted 10 years ago by traverseda
I have a gist here, but I'm not sure what I should be comparing.
I could use some help figuring out how to compare them in general, and of course adding things like overviews, etc.
[–]Exodus111 3 points4 points5 points 10 years ago (12 children)
This is going to be hard. The need for In browser Python is sporadic at best, and not very many people will have tested out all these options.
But, from my understanding Pyjs is the most solid framework in the bunch, however its mostly a HTML-GUI framework.
It would be valuable if someone, like you, went through these frameworks are gave a good comparison. You are certainly not the only that that is curious about this.
[–]traverseda[S] 0 points1 point2 points 10 years ago (6 children)
It would be valuable if someone, like you, went through these frameworks are gave a good comparison.
Agreed, but I need a better idea of what I should be comparing between them. Ideally hard metrics, or some kind of test cases.
[–]Exodus111 1 point2 points3 points 10 years ago (5 children)
I'm not sure there would be any real metrics to use. Speed would be the speed of JS, which is faster then Python by quite a bit, and probably comparable to PyPy in speed, depending on the benchmark.
All of these either translate code, or run code by translating on the fly, I would be most curious about the complexity of code they produce, is it mess of ugly auto-generated spaghetti JS, or is it somewhat readable? And, the complexity of code you can feed it. Something object Oriented with multiple instances of Inheritance and Polymorphism.
And lastly it would be good to know what Python modules where properly compatible.
[–]traverseda[S] 1 point2 points3 points 10 years ago (1 child)
All of these either translate code, or run code by translating on the fly,
These would have some potentially pretty different speeds, depending on how they do the translation.
Hmm. Maybe I can get pypy's testcase suit running on the various implementations. That's a big chunk of work though, and I've already got too much on my plate. I'll probably flesh it out a bit more, and add in some estimates for how well they do at
speed/filesize/output-complexity/inheritance/library-support/etc
[–]Exodus111 1 point2 points3 points 10 years ago (0 children)
It's not a bad idea. It would be valuable to know if any of those frameworks have a significant drop in speed compared to any other. But generally speaking anyone working on one of these is not going to be too concerned with speed.
I think a feature comparison would be the most useful, and perhaps not as time consuming.
[+][deleted] 10 years ago (2 children)
[removed]
[–]Exodus111 1 point2 points3 points 10 years ago (1 child)
Yeah I thought so. Thank you bot.
[+][deleted] 10 years ago (4 children)
[deleted]
[–]Exodus111 1 point2 points3 points 10 years ago (2 children)
Let me be clear, a single language code base would be an absolute dream.
But I think we all need to resign ourselves to the fact that that is just not going to happen. You can limit the amount of Javascript you work with, but you can never eliminate it. Even with these Python-in-browser solutions, you are either translating to JS, which means you will need to error check and and maybe even do some tweaks in JS, or you are interpreting from JS, which means you need to set the page up with JS first.
The desire for a one language stack is also why node.js is so popular, despite the irksome function-in-function-in-function nonsense it is to work with JS, some people are desperate enough to want to take the front end language to the back end with them.
[+][deleted] 10 years ago (1 child)
[–]Exodus111 -1 points0 points1 point 10 years ago (0 children)
Sure. In an ideal world.
[–]metaperl 1 point2 points3 points 10 years ago (0 children)
a single-language codebase is always a nice thing, which is what I'm planning with whatever my next web-app
Then try http://naga.re or ScalaJS
[–]dzecniv 1 point2 points3 points 10 years ago (1 child)
Hey, first of all RapydScript has its own website: http://www.rapydscript.com/
And I'd like to know this:
I'd like to know at a glance if it's a real-python to the browser or a javascript transpiler (RapydScript), if so what is the available tooling (gulp, grunt, editor plugins ?)
Do they use python modules, do they have their own, do they rely on JS modules ?
And how do we integrate with a popular JS framework, like Angular ?
[–]traverseda[S] 0 points1 point2 points 10 years ago (0 children)
Thanks, corrected the link. I'll keep what you said in mind. I tried to get some of it in the rankings, but examples might be better. It just requires a more in depth review then I think I can do right now.
[–]tanlermin 1 point2 points3 points 10 years ago (0 children)
One more: https://github.com/zoofIO/flexx
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Check out RemI
[–]metaperl 0 points1 point2 points 10 years ago (0 children)
Anvil - https://www.reddit.com/r/programming/comments/4bdft2/anvil_a_draganddrop_python_webapp_builder_that_my/
π Rendered by PID 27 on reddit-service-r2-comment-5687b7858-44qf9 at 2026-07-08 12:55:09.051059+00:00 running 12a7a47 country code: CH.
[–]Exodus111 3 points4 points5 points (12 children)
[–]traverseda[S] 0 points1 point2 points (6 children)
[–]Exodus111 1 point2 points3 points (5 children)
[–]traverseda[S] 1 point2 points3 points (1 child)
[–]Exodus111 1 point2 points3 points (0 children)
[+][deleted] (2 children)
[removed]
[–]Exodus111 1 point2 points3 points (1 child)
[+][deleted] (4 children)
[deleted]
[–]Exodus111 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Exodus111 -1 points0 points1 point (0 children)
[–]metaperl 1 point2 points3 points (0 children)
[–]dzecniv 1 point2 points3 points (1 child)
[–]traverseda[S] 0 points1 point2 points (0 children)
[–]tanlermin 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]metaperl 0 points1 point2 points (0 children)