Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
web interface to check python code
#1
I teach computer science in Washington State. Kennewick
I recently move from Java to Python for our core Language.
It was a very good choice. So I am learning one step ahead of my students in some cases.
Which is fine. My students are doing great.

????????????
The question.

We would like to install a web interface to check python3 script syntax.
If a students sends me code I'd like to copy and paste it in a text area on a web page and run it.
or open the file with a web interface.

Out lab runs Debian 9 with Apache2 and php
We have not use a python web server yet.

Please throw me a bone.

Additionally:
What is a good web framework to get started with?
Reply
#2
Quote:We would like to install a web interface to check python3 script syntax.
If a students sends me code I'd like to copy and paste it in a text area on a web page and run it.
or open the file with a web interface.
You could use something like this on our site. There are plenty of others as well.

It is limited modules to import, as well as does not give the exact traceback as it would directly ran because its really a javascript implementation of python, not directly running python.

Or why dont you just run it directly in the python3.x interpreter?
Recommended Tutorials:
Reply
#3
(Oct-16-2017, 12:11 PM)1885 Wrote: We would like to install a web interface to check python3 script syntax.
f a students sends me code I'd like to copy and paste it in a text area on a web page and run it. or open the file with a web interface.
Jupyter Notebook is good for teaching in browser.
PythonAnywhere has a setup for teaching.
Quote:Distributing assignments and monitoring progress is easy
Once a student has nominated you as their teacher, you can see their files and Python consoles, so you can help them more easily.
ou can copy files into their accounts so that you can give them a starting point for their assignments, and you can see their solutions.
We can even create student accounts in bulk for you, and pre-populate them with files that you provide — just let us know!
 
1885 Wrote:Additionally:
What is a good web framework to get started with?
Flask is good for teaching,there is very little noise to setup stuff.
Build incrementally with direct interaction with HTML/CSS/JavaScript.
Flask is now mature framework,so there easy to get help on web.
It can build all from small stuff to eg large site like patreon.

Django is also good has lot of build in stuff to make easier to start,
but it also hide a lot lower level stuff that can be okay to learn.
Reply
#4
(Oct-16-2017, 03:40 PM)metulburr Wrote: Or why dont you just run it directly in the python3.x interpreter?

Thank you for the post. I have my students put code on their personal localhost web server and on github.
They want to run code via a web interface because we think its cool!
Additionally we are looking to host teaching lessons for 5th to 8th grades and python is not installed on their computers due to security.

cwc

Thanks for the reply.
/jupyter.org/
flask.pocoo.org
djangoproject.com

Always choices.
Which do you think would be easiest to setup on a Rpi?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Element Check Code in Selenium Not Working digitalmatic7 1 3,009 Feb-18-2018, 06:53 AM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020