Hello,

Is it possible to display a molecule image directly in an IPython console (not 
a Jupyter Notebook)? Or maybe I need to send the image file directly to my 
image viewer? I would like to be able to quickly view the molecules without 
using a Jupyter Notebook or having to save the PNGs. For example:

In [6]: from rdkit import Chem
   ...: from rdkit.Chem.Draw import IPythonConsole
   ...: from rdkit.Chem import Draw

In [7]: m = Chem.MolFromSmiles('c1ncncc1C(=O)[O-]')

In [8]: m
Out[8]: <rdkit.Chem.rdchem.Mol at 0x....>

In [9]: Chem.Draw.MolToImage(m)
Out[9]: <PIL.PngImagePlugin.PngImageFile image mode=RGB size=300x300 at 0x...>


Thanks for your help.

Vin


---

Vincent F. Scalfani

The University of Alabama

<mailto:vfscalf...@ua.edu>

_______________________________________________
Rdkit-discuss mailing list
Rdkit-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-discuss

Reply via email to