Re: [Rdkit-discuss] Display Molecules within IPython Console

2020-09-01 Thread Scalfani, Vincent
-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

Re: [Rdkit-discuss] Display Molecules within IPython Console

2020-09-01 Thread Ivan Tubert-Brohman
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:

Re: [Rdkit-discuss] Display Molecules within IPython Console

2020-09-01 Thread Greg Landrum
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.