
This allows for example to see the code corresponding to certain instructions in python. It can also be useful for those who do not know python better than javascript. If you choose es5, then it uses babel to convert es6 code to es5.Īs many developers develop in Python, we may have snippets of Python code that we would like to run in a browser or on the server side via nodejs.

Also, update "foo in bar" to use bar.has(foo) for sets

JavaScripthon does not handle everything yet, current todo list (As of this writing):

It aims to be able to translate most of the Python's core semantics without providing a full python-in-js environment. JavaScripthon is a simple Python 3.5+ translator to JavaScript. This tool allows you to convert your python source code into javascript code.įor this conversion it uses JavaScripthon, a Python 3 to ES6 JavaScript translator.Īnd it uses Babel to convert ES6 to ES5, it is a JavaScript compiler.
