-discuss] Display Molecules within IPython Console
Hi Vin,
If you are running the IPython console on a terminal emulator that supports
graphics, you could display the molecule by printing out the necessary terminal
escape codes followed by the image buffer. The solution is terminal-specific
Hi Vin,
If you are running the IPython console on a terminal emulator that supports
graphics, you could display the molecule by printing out the necessary
terminal escape codes followed by the image buffer. The solution is
terminal-specific; here's an example that works using the Kitty terminal:
Hi Vin,
I added something a long time ago which still seems to work: Draw.ShowMol:
In [3]: from rdkit.Chem import Draw
In [4]: Draw.ShowMol(m)
That, for me at least, opens a window with an image of the molecule. It's
using tkinter, so it should work on all three supported operating systems.
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
4 matches
Mail list logo