8000 Do not allow manual installation of the lab extension · swan-cern/sparkmonitor@d7223be · GitHub
[go: up one dir, main page]

Skip to content

Commit d7223be

Browse files
diocasetejedor
authored andcommitted
Do not allow manual installation of the lab extension
We no longer ship the Jupyterlab code together with the python module, as it gets directly - and automatically - installed in the final destination.
1 parent 466eb8a commit d7223be

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

sparkmonitor/__init__.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@
55
from __future__ import absolute_import
66
from __future__ import unicode_literals
77

8-
import json
9-
from pathlib import Path
10-
118
from ._version import __version__
129

1310
def _jupyter_nbextension_paths():
@@ -19,15 +16,4 @@ def _jupyter_nbextension_paths():
1916
# directory in the `nbextension/` namespace
2017
dest='sparkmonitor',
2118
# _also_ in the `nbextension/` namespace
22-
require='sparkmonitor/extension')]
23-
24-
HERE = Path(__file__).parent.resolve()
25-
26-
with (HERE / "labextension" / "package.json").open() as fid:
27-
data = json.load(fid)
28-
29-
def _jupyter_labextension_paths():
30-
return [{
31-
"src": "labextension",
32-
"dest": data["name"]
33-
}]
19+
require='sparkmonitor/extension')]

0 commit comments

Comments
 (0)
0