Skip to content

Commit 81f4b00

Browse files
committed
Clean up nbextension paths
1 parent 60dffcd commit 81f4b00

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

jupyter_bokeh/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from pathlib import Path
44

5-
from .nbextension import _jupyter_nbextension_paths
65
from ._version import __version__
76

87
HERE = Path(__file__).parent.resolve()
@@ -15,3 +14,11 @@ def _jupyter_labextension_paths():
1514
"src": "labextension",
1615
"dest": data["name"]
1716
}]
17+
18+
def _jupyter_nbextension_paths():
19+
return [{
20+
"section": "notebook",
21+
"src": "nbextension/static",
22+
"dest": "jupyter_bokeh",
23+
"require": "jupyter_bokeh/extension",
24+
}]

jupyter_bokeh/nbextension/__init__.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

jupyter_bokeh/nbextension/static/.gitignore

Whitespace-only changes.

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
name = "jupyter_bokeh"
2020

2121
lab_path = (HERE / name / "labextension")
22-
nb_path = (HERE / name / "nbextension" / "static")
22+
nb_path = (HERE / name / "nbextension")
2323

2424
# Representative files that should exist after a successful build
2525
jstargets = [
@@ -35,8 +35,8 @@
3535

3636
data_files_spec = [
3737
("share/jupyter/labextensions/%s" % labext_name, str(lab_path), "**"),
38-
("share/jupyter/labextensions/%s/static" % labext_name, str(HERE), "install.json"),
39-
("share/jupyter/nbextensions/%s/static" % labext_name, str(nb_path), '**'),
38+
("share/jupyter/labextensions/%s" % labext_name, str(HERE), "install.json"),
39+
("share/jupyter/nbextensions/%s" % labext_name, str(nb_path), '**'),
4040
("etc/jupyter/nbconfig/notebook.d", str(HERE), "jupyter_bokeh.json")
4141
]
4242

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = [
1919
entry: "./lib/extension.js",
2020
output: {
2121
filename: "index.js",
22-
path: path.resolve(__dirname, "jupyter_bokeh", "nbextension", "static"),
22+
path: path.resolve(__dirname, "jupyter_bokeh", "nbextension"),
2323
libraryTarget: "amd",
2424
},
2525
externals,

0 commit comments

Comments
 (0)