-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.
3 matches
Mail list logo