|
20 | 20 | from . import widgets # noqa
|
21 | 21 | from ._version import __version__, version_info # noqa
|
22 | 22 |
|
| 23 | +# def _jupyter_labextension_paths(): |
| 24 | +# """Called by Jupyter Lab Server to detect if it is a valid labextension and |
| 25 | +# to install the widget |
| 26 | +# Returns |
| 27 | +# ======= |
| 28 | +# src: Source directory name to copy files from. Webpack outputs generated files |
| 29 | +# into this directory and Jupyter Lab copies from this directory during |
| 30 | +# widget installation |
| 31 | +# dest: Destination directory name to install widget files to. Jupyter Lab copies |
| 32 | +# from `src` directory into <jupyter path>/labextensions/<dest> directory |
| 33 | +# during widget installation |
| 34 | +# """ |
| 35 | +# return [ |
| 36 | +# { |
| 37 | +# "src": "labextension", |
| 38 | +# "dest": "jupyter-py5", |
| 39 | +# } |
| 40 | +# ] |
23 | 41 |
|
24 |
| -def _jupyter_labextension_paths(): |
25 |
| - """Called by Jupyter Lab Server to detect if it is a valid labextension and |
26 |
| - to install the widget |
27 |
| - Returns |
28 |
| - ======= |
29 |
| - src: Source directory name to copy files from. Webpack outputs generated files |
30 |
| - into this directory and Jupyter Lab copies from this directory during |
31 |
| - widget installation |
32 |
| - dest: Destination directory name to install widget files to. Jupyter Lab copies |
33 |
| - from `src` directory into <jupyter path>/labextensions/<dest> directory |
34 |
| - during widget installation |
35 |
| - """ |
36 |
| - return [ |
37 |
| - { |
38 |
| - "src": "labextension", |
39 |
| - "dest": "jupyter-py5", |
40 |
| - } |
41 |
| - ] |
42 | 42 |
|
43 |
| - |
44 |
| -def _jupyter_nbextension_paths(): |
45 |
| - """Called by Jupyter Notebook Server to detect if it is a valid nbextension and |
46 |
| - to install the widget |
47 |
| - Returns |
48 |
| - ======= |
49 |
| - section: The section of the Jupyter Notebook Server to change. |
50 |
| - Must be 'notebook' for widget extensions |
51 |
| - src: Source directory name to copy files from. Webpack outputs generated files |
52 |
| - into this directory and Jupyter Notebook copies from this directory during |
53 |
| - widget installation |
54 |
| - dest: Destination directory name to install widget files to. Jupyter Notebook copies |
55 |
| - from `src` directory into <jupyter path>/nbextensions/<dest> directory |
56 |
| - during widget installation |
57 |
| - require: Path to importable AMD Javascript module inside the |
58 |
| - <jupyter path>/nbextensions/<dest> directory |
59 |
| - """ |
60 |
| - return [ |
61 |
| - { |
62 |
| - "section": "notebook", |
63 |
| - "src": "nbextension", |
64 |
| - "dest": "py5jupyter", |
65 |
| - "require": "py5jupyter/extension", |
66 |
| - } |
67 |
| - ] |
| 43 | +# def _jupyter_nbextension_paths(): |
| 44 | +# """Called by Jupyter Notebook Server to detect if it is a valid nbextension and |
| 45 | +# to install the widget |
| 46 | +# Returns |
| 47 | +# ======= |
| 48 | +# section: The section of the Jupyter Notebook Server to change. |
| 49 | +# Must be 'notebook' for widget extensions |
| 50 | +# src: Source directory name to copy files from. Webpack outputs generated files |
| 51 | +# into this directory and Jupyter Notebook copies from this directory during |
| 52 | +# widget installation |
| 53 | +# dest: Destination directory name to install widget files to. Jupyter Notebook copies |
| 54 | +# from `src` directory into <jupyter path>/nbextensions/<dest> directory |
| 55 | +# during widget installation |
| 56 | +# require: Path to importable AMD Javascript module inside the |
| 57 | +# <jupyter path>/nbextensions/<dest> directory |
| 58 | +# """ |
| 59 | +# return [ |
| 60 | +# { |
| 61 | +# "section": "notebook", |
| 62 | +# "src": "nbextension", |
| 63 | +# "dest": "py5jupyter", |
| 64 | +# "require": "py5jupyter/extension", |
| 65 | +# } |
| 66 | +# ] |
0 commit comments