On Mon, Mar 29, 2004 at 11:37:22AM +0100, Jonathan Barber wrote:
> 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.

A few people have expressed interest in the code, so I've put it up at
the following URL:

http://www.compbio.dundee.ac.uk/~jon/pymol.cgi
-- 
Jon

Reply via email to