diff --git a/nglview/__init__.py b/nglview/__init__.py index 78365bda..fffb84b1 100644 --- a/nglview/__init__.py +++ b/nglview/__init__.py @@ -35,7 +35,7 @@ def _jupyter_nbextension_paths(): return [{ 'section': 'notebook', - 'src': 'static', + 'src': 'nbextension', 'dest': 'nglview-js-widgets', 'require': 'nglview-js-widgets/extension' }] diff --git a/tests/test_widget.py b/tests/test_widget.py index fd5ad3e9..a2dd8f63 100644 --- a/tests/test_widget.py +++ b/tests/test_widget.py @@ -706,9 +706,8 @@ def copy_coordinate_dict(view): def test_existing_js_files(): from glob import glob - jsfiles = glob(os.path.join(os.path.dirname(nv.__file__), 'static', '*js')) - mapfiles = glob(os.path.join(os.path.dirname(nv.__file__), 'static', - '*map')) + jsfiles = glob(os.path.join(os.path.dirname(nv.__file__), 'nbextension', '*js')) + mapfiles = glob(os.path.join(os.path.dirname(nv.__file__), 'nbextension', '*map')) assert len(jsfiles) == 2 assert len(mapfiles) == 1