gabrielelanaro / chemview

The new generation molecular viewer for IPython notebook
GNU Lesser General Public License v2.1
81 stars 17 forks source link

Update for Jupyter Notebook #15

Closed berquist closed 8 years ago

berquist commented 8 years ago

Attempting to run the Quick Start notebook:

from chemview import enable_notebook, MolecularViewer
enable_notebook()

results in

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-d8be18394f63> in <module>()
----> 1 from chemview import enable_notebook, MolecularViewer
      2 enable_notebook()

/usr/lib/python2.7/site-packages/chemview/__init__.py in <module>()
----> 1 from .install import enable_notebook
      2 from .widget import RepresentationViewer
      3 from .viewer import MolecularViewer, TrajectoryControls
      4 from .trajectory import TrajectoryViewer

/usr/lib/python2.7/site-packages/chemview/install.py in <module>()
      4 import warnings
      5 from IPython.display import display, Javascript
----> 6 from IPython.html.nbextensions import install_nbextension
      7 with warnings.catch_warnings():
      8     warnings.simplefilter("ignore")

ImportError: No module named nbextensions

so it looks like things need to be updated for Jupyter Notebook.

gabrielelanaro commented 8 years ago

Hi thanks for trying chemview out. I'm waiting a little bit to implement support for jupyter 4.0 because it's still new and it will break earlier versions of the notebook.

gabrielelanaro commented 8 years ago

Reference commit d28b0c7