Re: [Open Babel] generate image dynamically

2019-01-07 Thread Dimitri Maziuk via OpenBabel-discuss
On 1/7/19 11:04 AM, Dmitri Maziuk via OpenBabel-discuss wrote: > .. subscribe as e.g. > person@work, then have their @work address forwarded to gmail, later > try to unsubscribe their person@work address and wonder why that is not > working. Sorry, braino: I meant "trying to usubscribe person@gma

Re: [Open Babel] generate image dynamically

2019-01-07 Thread Dmitri Maziuk via OpenBabel-discuss
On Mon, 7 Jan 2019 09:42:06 +0200 Devora Witty wrote: > There is some kind of bug in the unscubscribe option for the openbabel > mailing list, despite attempting to unsubscribe several times I am > still receiving emails > > On Sun, Jan 6, 2019 at 10:35 PM Christina Frances Sandall < > cfsan...@

Re: [Open Babel] generate image dynamically

2019-01-06 Thread Christina Frances Sandall
Please remove me from this mailing list. Thanks very much! > On Dec 23, 2018, at 12:52 PM, Dmitri Maziuk via OpenBabel-discuss > wrote: > > On Sat, 22 Dec 2018 14:22:31 -0500 > Spencer Trinh wrote: > >> How may one approach this? > > One starts with Reading The Fine Manual, specifically the

Re: [Open Babel] generate image dynamically

2018-12-26 Thread Dimitri Maziuk via OpenBabel-discuss
Noel, Geoff, this sounds like a bug: On 12/23/18 2:52 PM, Spencer Trinh wrote: > > output=pybel.Outputfile('svg',filename='testsvg.svg',opt={'u':None,'C':None}) > for name,mol in mols.items(): > mol.removeh() > mol.title=name > output.write(mol) > output.close() > ... The svg file itself has er

Re: [Open Babel] generate image dynamically

2018-12-26 Thread Dimitri Maziuk via OpenBabel-discuss
On 12/23/18 2:52 PM, Spencer Trinh wrote: > output=pybel.Outputfile('svg',filename='testsvg.svg',opt={'u':None,'C':None}) > > for name,mol in mols.items(): > > mol.removeh() > > mol.title=name > > output.write(mol) > > output.close() From http://openbabel.org/docs/dev/UseTheLibrary/Python_Py

Re: [Open Babel] generate image dynamically

2018-12-23 Thread Dmitri Maziuk via OpenBabel-discuss
On Sat, 22 Dec 2018 14:22:31 -0500 Spencer Trinh wrote: > How may one approach this? One starts with Reading The Fine Manual, specifically the parts where one gets the SVG as a string from pybel and sends it out in werkzeug Response. -- Dmitri Maziuk ___

Re: [Open Babel] generate image dynamically

2018-12-22 Thread Noel O'Boyle
Sure. Have the html include an img with src pointing to an svg file, and have this request handled by flask which should return the svg file generated dynamically based on the url. The important step is that flask should set the mimetype correctly. On Sat, 22 Dec 2018, 19:22 Spencer Trinh Hi, > >

[Open Babel] generate image dynamically

2018-12-22 Thread Spencer Trinh
Hi, Im new to openbabel. I wanted to make a webservice (using Flask) that can do smart searching on a database. How can I dynamically display SVG images on html template without having to write the file to a directory and point it to a physical location. Is it possible to render the image dynamica