On Thu, Mar 25, 2004 at 10:13:42AM +0000, Einat Sitbon wrote:
> 
> Hello PyMolers,
> 
> I'm wondering if there is a possibility to embed a pymol script in a web 
> site.
> What I have in mind is something equivalent to the chime plug-in, using 
> pymol.
> Any suggestions?

One way I've tried to achieve this is to have a CGI on the webserver
that sends a Pymol script to the client.

If the client's browser has Pymol set up to recognise Pymol scripts,
then it'll execute the script. This requires the CGI to set the MIME
type type and to set the filename of the script to have the correct
suffix (to make Explorer on Windows work properly).

The downloaded script is then executed by Pymol, which can uses Python's
socket abilities to download PDB files and run Pymol commands on them.

Et volia! A little convoluted, and by no means as elegent as having a
browser plugin, but it does allow you to use Pymol for visulation over
the web.

I've got the code for this kicking around somewhere, if anyone is
interested then contact me and I'll look for it and stick it on the web.

Taking the idea further, and musing idly, a server-client could be set
up between the web server and the client to allow further communication.
Of course all of this is completly insecure, although the Python code
could be sandboxed.

> Thanks, Einat.
> 
> 
> Einat Sitbon
> Department of Molecular Genetics
> Weizmann Institute of Science
> Tel: 972-8-9344911
> 
> To reply, please change the mmm in the reply-to address to hotmail
> 
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online 
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> PyMOL-users mailing list
> PyMOL-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pymol-users

-- 
Jon

Reply via email to