Skip to content

Commit

Permalink
Do not allow manual installation of the lab extension
Browse files Browse the repository at this point in the history
We no longer ship the Jupyterlab code together with the python module, as it gets directly - and automatically - installed in the final destination.
  • Loading branch information
diocas committed Jan 18, 2024
1 parent ea6c515 commit 66148ca
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions sparkmonitor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
from __future__ import absolute_import
from __future__ import unicode_literals

import json
from pathlib import Path

from ._version import __version__

def _jupyter_nbextension_paths():
Expand All @@ -19,15 +16,4 @@ def _jupyter_nbextension_paths():
# directory in the `nbextension/` namespace
dest='sparkmonitor',
# _also_ in the `nbextension/` namespace
require='sparkmonitor/extension')]

HERE = Path(__file__).parent.resolve()

with (HERE / "labextension" / "package.json").open() as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": data["name"]
}]
require='sparkmonitor/extension')]

0 comments on commit 66148ca

Please sign in to comment.