Skip to content

Commit 4d64c1e

Browse files
authored
Fix server extension loading when package.json is missing (jupyterlab#224)
1 parent 05b9b00 commit 4d64c1e

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

jupyterlab_plugin_playground/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11

2-
import json
32
import shutil
43
from pathlib import Path
54

65
HERE = Path(__file__).parent.resolve()
76
EXAMPLES = HERE / "extension-examples"
8-
9-
with (HERE / "labextension" / "package.json").open() as fid:
10-
data = json.load(fid)
7+
LABEXTENSION_NAME = "@jupyterlab/plugin-playground"
118

129
def _jupyter_labextension_paths():
1310
return [{
1411
"src": "labextension",
15-
"dest": data["name"]
12+
"dest": LABEXTENSION_NAME
1613
}]
1714

1815

0 commit comments

Comments
 (0)