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 <trinh.kc...@gmail.com wrote: > 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 dynamically > based on a user's query search and not save it to a physical location? I've > seen some plotting packages that are able to use a function, i.e. > `render_to_uri()` and embed it into the html code. Is there a similar > function in pybel? How may one approach this? Thanks. > > > > Regards, > _______________________________________________ > OpenBabel-discuss mailing list > OpenBabel-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss >
_______________________________________________ OpenBabel-discuss mailing list OpenBabel-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-discuss