From: Titi A. <tia...@ya...> - 2005-06-30 01:11:34
|
hi all, I have a physics visualization using vpython. I just curios to show it in a web page. I want when a visitor clicks this file, a web browser will execute the program and generate the visualization. I have tried using CGI but it didn't work. I use RH 9, apache2.0.40, python2.2.2, mod_python-3.0. Thank you for any suggestion about this problem __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail |
From: Anton S. <br...@po...> - 2005-06-30 06:19:26
|
Titi Anggono wrote: > I have a physics visualization using vpython. I just > curios to show it in a web page. I want when a visitor > clicks this file, a web browser will execute the > program and generate the visualization. Can VP be wrapped in a browser plugin? -- Anton Sherwood, http://www.ogre.nu/ "How'd ya like to climb this high *without* no mountain?" --Porky Pine |
From: Jonathan B. <jbr...@ea...> - 2005-06-30 11:38:59
|
On Wed, 2005-06-29 at 23:21 -0700, Anton Sherwood wrote: > Titi Anggono wrote: > > I have a physics visualization using vpython. I just > > curios to show it in a web page. I want when a visitor > > clicks this file, a web browser will execute the > > program and generate the visualization. > > Can VP be wrapped in a browser plugin? Any such plugin would have to do some kind of sandboxing to insulate the user from potentially malicious Python scripts (which can do anything a virus, trojan, or other malware can). As far as I know there is no such execution environment for Python. -Jonathan |
From: Flavio C. <fcc...@gm...> - 2005-06-30 14:25:12
|
2005/6/30, Jonathan Brandmeyer <jbr...@ea...>: >=20 > On Wed, 2005-06-29 at 23:21 -0700, Anton Sherwood wrote: > > Titi Anggono wrote: > > > I have a physics visualization using vpython. I just > > > curios to show it in a web page. I want when a visitor > > > clicks this file, a web browser will execute the > > > program and generate the visualization. >=20 > Starting your script from a web page shouldn't be a problem , see cherryp= y=20 (www.cherrypy.org <http://www.cherrypy.org>) for a web application=20 framework, see also snakelets (www.snakelets.org <http://www.snakelets.org>= ).=20 your main chalenge will be to get the output of vpython in a format that ca= n=20 be visualized through a web-browser: animated gif, mpg perhaps?=20 In any case, I believe, interactivity such as we heve in the standard=20 vpython canvas, would be out of the question. I hope someone in vpython development team will correct if I am wrong. It= =20 would be really good to have a way to integrate vpython into a web=20 application. --=20 Fl=E1vio Code=E7o Coelho registered Linux user # 386432 --------------------------- Great spirits have always found violent opposition from mediocrities. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence. Albert Einstein |
From: Dethe E. <de...@li...> - 2005-06-30 16:00:23
|
There are web plugins for X3D (an XML-based 3D modelling language, =20 the successor to VRML), so VPython could conceivably export to X3D =20 the way it does to POVRay. You would lose any custom Python =20 interactivity (unless it was recoded in Javascript and X3D), but have =20= basic X3D interactivity (grab, walk, fly, if I recall correctly). I don't know of any X3D exporters at this time, but I would expect it =20= to be easier than porting VPython to a plugin. --Dethe On 30-Jun-05, at 7:25 AM, Flavio Coelho wrote: > 2005/6/30, Jonathan Brandmeyer <jbr...@ea...>: > >> >> On Wed, 2005-06-29 at 23:21 -0700, Anton Sherwood wrote: >> >>> Titi Anggono wrote: >>> >>>> I have a physics visualization using vpython. I just >>>> curios to show it in a web page. I want when a visitor >>>> clicks this file, a web browser will execute the >>>> program and generate the visualization. >>>> >> >> Starting your script from a web page shouldn't be a problem , see =20 >> cherrypy >> > (www.cherrypy.org <http://www.cherrypy.org>) for a web application > framework, see also snakelets (www.snakelets.org <http://=20 > www.snakelets.org>). > your main chalenge will be to get the output of vpython in a format =20= > that can > be visualized through a web-browser: animated gif, mpg perhaps? > In any case, I believe, interactivity such as we heve in the standard > vpython canvas, would be out of the question. > > I hope someone in vpython development team will correct if I am =20 > wrong. It > would be really good to have a way to integrate vpython into a web > application. > > > > --=20 > Fl=E1vio Code=E7o Coelho > registered Linux user # 386432 > --------------------------- > Great spirits have always found violent opposition from =20 > mediocrities. The > latter cannot understand it when a man does not thoughtlessly =20 > submit to > hereditary prejudices but honestly and courageously uses his =20 > intelligence. > Albert Einstein > "Why is Virtual Reality always posited in terms of space, when time =20 is the only real commodity left?" --Rich Gold |
From: Gary <pa...@in...> - 2005-06-30 16:25:05
|
While we're brainstorming about web pages and native OSX, let me toss in JPython. I've now entered territory I know nothing about. But if vpython were to work under JPython, wouldn't that cover the web app issue? Yours in ingnorance, gary |