We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e0d3af commit 033f3f5Copy full SHA for 033f3f5
js/scripts/templates/py_top_level_init.mustache
@@ -7,21 +7,11 @@ from {{ module.pyRelativePath }} import *
7
{{/each}}
8
9
10
-def _prefix():
11
- import sys
12
- from pathlib import Path
13
- prefix = sys.prefix
14
- here = Path(__file__).parent
15
- # for when in dev mode
16
- if (here.parent / 'setup.py').exists():
17
- prefix = here.parent
18
- return prefix
19
-
20
21
def _jupyter_labextension_paths():
22
return [{
23
- 'src': f'{_prefix()}/share/jupyter/labextensions/{npm_pkg_name}/',
24
- 'dest': f'{npm_pkg_name}',
+ 'src': 'labextension',
+ 'dest': npm_pkg_name,
25
}]
26
27
0 commit comments