0
How do online python IDEs and compilers work?
There are various online python IDEs where you can run the python programs.. Does the python code of these IDEs run on the back end(server) or on the front end (user's system)? Actually my question is that can we have python code in our web application (created by django )that runs on the front end rather than back end?
2 Respuestas
+ 1
Im going to use Sololearn's system as an example
When Python code is run, after being typed into an input control, the text is sent to the server. The server will have it's own Python interpreter, run the code, and send the results back
The reason we can't have Python GUIs (not without a couple tricks...explanation ahead), is that the Sololearn server only sends text-data back
Several web-IDE's might also have GUI support, though none come to mind
There is also a thing called Brython. It is a Python version that can handle Front-End instead of Javascript. Sololearn has support for Brython, as can be seen in the following code written by @Cbr[Most active] (check in the JS page)
https://code.sololearn.com/WIJTbTgcdBGr/?ref=app
Is this what you meant? If not, please say so. I might then be able to provide a clearer explanation👍🏼
+ 1
Thanks Thomas.. It was a great explanation.