Can Python run on the Internet

J

John Mowbray

I'd like to use Python in my classes, but some students do not have a
pc. They do have access to Internet-connected systems, though. Is
there a site someplace on the Internet (preferably a web server) where
someone can submit a Python program to be run? Telnet may be possible
to use, but a browser would be ideal.

John
 
M

Maciej Dziardziel

John said:
I'd like to use Python in my classes, but some students do not have a
pc.

Python can run on any many operating systems.
They do have access to Internet-connected systems, though.

So they can run python there.
Is
there a site someplace on the Internet (preferably a web server) where
someone can submit a Python program to be run?

You will need unix shell to do that - hard thing to find such for free,
but you can try at metawire.org.
Telnet may be possible
to use,

Forget telnet, use ssh. Noone allows telnet connections today.
but a browser would be ideal.

You would have to write web application that passes code from webpage to
python.
 
R

Rick Holbert

John,

Yes, python can run from the command prompt on a remote computer. I do this
all the time by developing prototypes of my programming assignments in
Python or Jython for my computer science classes. I then translate the
working prototypes into the target language of the course (Java, C++, C,
etc.).

Some of the free Unix shell providers may have Python installed:

http://www.leftfoot.com/freeshells.html
http://www.ductape.net/~mitja/freeunix.shtml

You could also install Linux on an old PC, hook it up to your LAN, and set
up shell accounts for your students so they can have access to Python from
the command prompt.

In either case, in lieu of telnet, I'd recommend using secure shell (ssh)
because it's more secure.

Putty is a program for Windows that provides ssh capabilities.

http://www.chiark.greenend.org.uk/~sgtatham/putty/

Rick
 
B

Bruno Desthuilliers

Maciej said:
John Mowbray wrote:



Python can run on any many operating systems.

I didn't know that 'pc' was an OS !-)

I guess that the point is that some students does not have any computer
at all.
(snip)


You would have to write web application that passes code from webpage to
python.

Zope may be of some help here. It wont really replace the Python
top-level, but...
 
J

Josiah Carlson

I'd like to use Python in my classes, but some students do not have a
pc. They do have access to Internet-connected systems, though. Is
there a site someplace on the Internet (preferably a web server) where
someone can submit a Python program to be run? Telnet may be possible
to use, but a browser would be ideal.

1. Find some machine that is connected to the internet; windows, mac or
linux.
2. Set up an SSH server on the machine (it is like telnet, only secure),
there are free SSH servers and clients for all platforms (there is a
great java SSH client which can be embedded in a web page called
MindTerm).
3. Install Python on the machine.
4. Give students a/some login(s).

Now, this will get it running; deciding whether you trust your students
in a situation like this is another question.

- Josiah
 
J

Josef Meile

Zope may be of some help here. It wont really replace the Python
top-level, but...
The only problem with Zope is that its python is restricted, so, you
won't be able to import some modules. However, there is a solution: look
for a file called "module_access_examples.py", located on
<ZopeHome>/lib/python/Products/PythonScripts, and enable the modules
like is described there (with the allow_module function). Then place the
file on a product folder (this is also described there), start zope and
you will have a functional python. Then you can create users on the
built-in acl_users folder, or if you have an LDAP Server, then you can
install the LDAPUserFolder. If you have other authentication method,
then look zope.org for more user folders (there are plenty of them). And
the best of all is that you can access it with a browser.

Regards,
Josef
 
Y

Y2KYZFR1

John Mowbray said:
I'd like to use Python in my classes, but some students do not have a
pc. They do have access to Internet-connected systems, though. Is
there a site someplace on the Internet (preferably a web server) where
someone can submit a Python program to be run? Telnet may be possible
to use, but a browser would be ideal.

John

dude I really feel sorry for your students, you don't even have a
basic understanding of technical terms, you use them like a politician
or a hollywood screen writer, EMBARSSINGLY INCORRECTLY!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,209
Messages
2,571,088
Members
47,687
Latest member
IngridXxj

Latest Threads

Top