@@ -3,3 +3,13 @@ try:
 except ImportError:
   __version__ = 'Unknown'
   raise
+
+# if we are running in a jupyter notebook, enable the extensions
+try:
+  get_ipython()
+  from rdkit.Chem.Draw import IPythonConsole
+  from rdkit.Chem import LogWarningMsg, WrapLogs
+  WrapLogs()
+  LogWarningMsg("Enabling RDKit %s jupyter extensions"%__version__)
+except:
+  pass
try:
  from .rdBase import rdkitVersion as __version__
except ImportError:
  __version__ = 'Unknown'
  raise

I think the idea here is really good, but `get_ipython()` also returns something if we are running in an ipython shell. Maybe it's possible to detect whether or not we're running in jupyter?