On Mon, 14 Oct 2002, Joe Heafner wrote:
> > From: "Robert Robinson" <Rob...@ma...>
> >
> > Does anyone know of a quick way to translate Vpython programs to a language
> > such as Java for use as web applets?
> >
> Along these same lines, I've been wondering if it's even possible to embed a VPython program (or even a plain Python program for that matter) in a web page at all.
>
>
> Cheers,
> Joe Heafner - Instructional Astronomy and Physics
> Home Page http://users.vnet.net/heafnerj/index.html
> I don't have a Lexus, but I do have a Mac. Same thing.
>
I can think of two routes to achieve these goals...but these are just
general directions to head, actually getting there will take some work!
(1) Jython -- the java implementation of python; but as to how one goes
about constructing web applets using jython, I am completely ignorant.
And can you even successfully import visual in jython?
(2) Grail -- this was a browser written in python+tkinter, which could
accept python code for client side scripts; but development seems
to have halted (last release was March 2000) and I very much doubt
it could run visual python applets without some real hacking.
Regards,
Marty Gelfand
Dept of Physics, Colorado State
|