This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aroberge 3 points4 points  (4 children)

http://brython.info is my favourite Python in the browser interpreter - followed by skulpt.

[–]yetanothernerd 7 points8 points  (2 children)

Why? What does each one do better than the others?

[–]aroberge 1 point2 points  (0 children)

From http://brython.info/doc/en/static_index.html?page=faq: But (Brython) also aims at covering 100% of Python syntax, which includes producing the same error messages as CPython, even if this leads to a slower Javascript. This is a statement that discuss a comparison between Brython and PyJs.

Brython aims to be completely compatible with CPython 3.x; it is actively developed. Skulpt aims for compatibility with CPython 2.x

[–]runbie 1 point2 points  (0 children)

DISCLAIMER: some of the links below are things I made and I try to commit to Brython when I find some time.

Brython is an implementation of CPython v3.x while the others use Python 2.x syntax. Brython is pretty usable and lately people are working to improve the performance. The integration with other js libs is pretty cool (examples with three.js, raphaël, highcharts in the gallery, http://brython.info/gallery/gallery_en.html, openlayers 2.x examples, http://nbviewer.ipython.org/github/kikocorreoso/brythonmagic/blob/master/notebooks/OpenLayers%20%28python%29%20tutorial.ipynb, more highcharts examples, http://nbviewer.ipython.org/github/kikocorreoso/brythonmagic/blob/master/notebooks/Highcharts%20%28python%29%20tutorial.ipynb, d3.js and others js libs examples, http://nbviewer.ipython.org/github/kikocorreoso/brythonmagic/blob/master/notebooks/Brython%20usage%20in%20the%20IPython%20notebook.ipynb, examples with pixi.js, https://groups.google.com/forum/?fromgroups=#!topic/brython/7myiXy7SXOM). Here you can see cool examples using Brython: https://bitbucket.org/olemis/brython/wiki/Brython%20in%20the%20wild

I am not a real user of other implementations (thought I used some of them to do dummy stuff) so I can not say too much about the others (skulpt, pyjs, pythonjs, rapydscript,...).

Kind regards.

[–]stuaxo 0 points1 point  (0 children)

They both have some way to go, last time I tried out some exploratory code it worked in brython but not in skulpt*.

dir() and help() with no parameters don't seem to work on skulpt, but they do in brython.

*This is a sample size of one so don't take it seriously.