I’m building a website which allows you to write python code online just like http://shell.appspot.com/ or http://ideone.com. Can someone please provide me some help how I can achieve this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all you can browse their source code. The main file is only 321 lines !
Basically it keeps a separate global dict for each user session, then uses
compileandexecto run the code and return the result.and
Edit: Not using Google App Engine would make things much more complicated.But you can take a look at pysandbox