Brython script into .js ? #2608
Replies: 1 comment
-
The script Anyway, that's not how Brython is designed. Its goal is to make web development in Python as simple as in Javascript : edit code, reload the page, that's all - no precompilation every time you change the Python code. There is another Python to Javascript project that requires precompiling, Transcrypt, but the support of the Python language is more limited and it hasn't been extremely active these last years. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
If my wording is correct, Brython is a "Translator" that convert Python syntax into Javacript syntax in order to be understand by web-browser.
Instead of using brython.js That weight ~900kB , and make the "translation" on the client side, for each visitor.
I'm looking to use the translated (.js) output.
when doing
The translated Python -> JS is displayed in the Browser console. But I can't use it as such :/
So is there a way to get a workable js ?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions