+ 2

Can python be used to program a Web page instead of javascript?

Instead of using javascript for programming the Web page instead of using javascript.

4th Sep 2020, 8:52 PM
DayStorm
DayStorm - avatar
7 Answers
+ 1
So from what I get from the links, there are several ways to use python instead of JavaScript in the web browser. However, most of the tools available serves as interpreter or compiler for JavaScript or web assembly. The few independent of JavaScript are also more of having python interpreter loaded with the web pages. In the nutshell, most of these pages will be slower and more resource consuming than ordinary pages utilizing only JavaScript. Personally, I think they may be okay for simple scripts running in the browser. I also think some of these tools should be packaged as addons that could be added once to each browser to reduce page sizes and make the python interpreters run more native in the browsers.
5th Sep 2020, 5:08 PM
Emmanuel K
Emmanuel K - avatar
+ 2
Yes! With using django!
4th Sep 2020, 9:26 PM
george
george - avatar
+ 2
Yes, there are several variants, one of which is called Brython. There is also, Skulpt, PyJS, Pyodide, and several others https://yasoob.me/2019/05/22/running-JUMP_LINK__&&__python__&&__JUMP_LINK-in-the-browser/
4th Sep 2020, 9:50 PM
Steven M
Steven M - avatar
+ 1
george django
4th Sep 2020, 9:32 PM
Marina Vasilyova
Marina Vasilyova - avatar
0
Maria Vasilyova thanks for correctness
4th Sep 2020, 9:33 PM
george
george - avatar
0
surely django only django
4th Sep 2020, 10:47 PM
Deten
Deten - avatar