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.

[Rdkit-discuss] Display Molecules within IPython Console

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