jupyterlab-data-mount 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. jupyterlab_data_mount-0.1.0/.copier-answers.yml +19 -0
  2. jupyterlab_data_mount-0.1.0/.gitignore +121 -0
  3. jupyterlab_data_mount-0.1.0/.prettierignore +6 -0
  4. jupyterlab_data_mount-0.1.0/.yarnrc.yml +1 -0
  5. jupyterlab_data_mount-0.1.0/CHANGELOG.md +5 -0
  6. jupyterlab_data_mount-0.1.0/LICENSE +29 -0
  7. jupyterlab_data_mount-0.1.0/PKG-INFO +157 -0
  8. jupyterlab_data_mount-0.1.0/README.md +101 -0
  9. jupyterlab_data_mount-0.1.0/RELEASE.md +80 -0
  10. jupyterlab_data_mount-0.1.0/install.json +5 -0
  11. jupyterlab_data_mount-0.1.0/jupyter-config/server-config/jupyterlab_data_mount.json +7 -0
  12. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/__init__.py +32 -0
  13. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/_version.py +4 -0
  14. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/handlers.py +180 -0
  15. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/build_log.json +724 -0
  16. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/install.json +5 -0
  17. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/package.json +223 -0
  18. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/schemas/jupyterlab-data-mount/package.json.orig +218 -0
  19. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/schemas/jupyterlab-data-mount/plugin.json +8 -0
  20. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/lib_index_js-data_image_svg_xml_3csvg_xmlns_27http_www_w3_org_2000_svg_27_viewBox_27-4_-4_8_8-8bf12d.6acb5054291f75777f25.js +1837 -0
  21. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/lib_index_js-data_image_svg_xml_3csvg_xmlns_27http_www_w3_org_2000_svg_27_viewBox_27-4_-4_8_8-8bf12d.6acb5054291f75777f25.js.map +1 -0
  22. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/lib_index_js-data_image_svg_xml_3csvg_xmlns_27http_www_w3_org_2000_svg_27_viewBox_27-4_-4_8_8-8bf12d.7fedcd723cff3ee5a5d2.js +1842 -0
  23. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/lib_index_js-data_image_svg_xml_3csvg_xmlns_27http_www_w3_org_2000_svg_27_viewBox_27-4_-4_8_8-8bf12d.7fedcd723cff3ee5a5d2.js.map +1 -0
  24. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/lib_index_js-data_image_svg_xml_3csvg_xmlns_27http_www_w3_org_2000_svg_27_viewBox_27-4_-4_8_8-8bf12d.8b0c221d4871a2ef9543.js +1837 -0
  25. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/lib_index_js-data_image_svg_xml_3csvg_xmlns_27http_www_w3_org_2000_svg_27_viewBox_27-4_-4_8_8-8bf12d.8b0c221d4871a2ef9543.js.map +1 -0
  26. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_babel_runtime_helpers_esm_assertThisInitialized_js-node_modules_babel_runtime_he-4b194c.e5555c5d156ba2b0fd9e.js +111 -0
  27. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_babel_runtime_helpers_esm_assertThisInitialized_js-node_modules_babel_runtime_he-4b194c.e5555c5d156ba2b0fd9e.js.map +1 -0
  28. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_memoize_dist_emotion-m-15c65e.62fcec41310f486a1cf9.js +140 -0
  29. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_memoize_dist_emotion-m-15c65e.62fcec41310f486a1cf9.js.map +1 -0
  30. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_memoize_dist_emotion-m-344ccf.7dc391d7510ed10a24c0.js +51 -0
  31. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_memoize_dist_emotion-m-344ccf.7dc391d7510ed10a24c0.js.map +1 -0
  32. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb40.4a2bbae592eed3d4dd47.js +94 -0
  33. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb40.4a2bbae592eed3d4dd47.js.map +1 -0
  34. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb41.d2a18f2629ab14d0e5de.js +94 -0
  35. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb41.d2a18f2629ab14d0e5de.js.map +1 -0
  36. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/remoteEntry.152c90723e0a92eaf31c.js.map +1 -0
  37. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/remoteEntry.6e786e937f3763115432.js +581 -0
  38. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/remoteEntry.6e786e937f3763115432.js.map +1 -0
  39. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/remoteEntry.dbe1877008310fffee7a.js.map +1 -0
  40. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/style.js +4 -0
  41. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/style_index_js.f91841435ce728b77ae6.js +637 -0
  42. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/style_index_js.f91841435ce728b77ae6.js.map +1 -0
  43. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js.94cecc75ff1c1577f0df.js +1864 -0
  44. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js.94cecc75ff1c1577f0df.js.map +1 -0
  45. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_memoize_dist_emotion-memoize_esm_js-node_modules_mui_icons-mater-979218.2f1b60cca0e933340883.js +13886 -0
  46. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_memoize_dist_emotion-memoize_esm_js-node_modules_mui_icons-mater-979218.2f1b60cca0e933340883.js.map +1 -0
  47. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.7fff113e976c01a5f3b7.js +1265 -0
  48. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.7fff113e976c01a5f3b7.js.map +1 -0
  49. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_serialize_dist_emotion-serialize_development_esm_js.c872bc456eb7114b2413.js +461 -0
  50. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_serialize_dist_emotion-serialize_development_esm_js.c872bc456eb7114b2413.js.map +1 -0
  51. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.1ace284bd1fd21c0a279.js +376 -0
  52. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.1ace284bd1fd21c0a279.js.map +1 -0
  53. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_floating-ui_dom_dist_floating-ui_dom_mjs.62160907e35e61965468.js +2216 -0
  54. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_floating-ui_dom_dist_floating-ui_dom_mjs.62160907e35e61965468.js.map +1 -0
  55. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_react-select_dist_react-select_esm_js.552f31503f0a955d7eb4.js +4993 -0
  56. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_react-select_dist_react-select_esm_js.552f31503f0a955d7eb4.js.map +1 -0
  57. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_react-tooltip_dist_react-tooltip_min_mjs.a6f80dd801a5690edd41.js +316 -0
  58. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/labextension/static/vendors-node_modules_react-tooltip_dist_react-tooltip_min_mjs.a6f80dd801a5690edd41.js.map +1 -0
  59. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/tests/__init__.py +1 -0
  60. jupyterlab_data_mount-0.1.0/jupyterlab_data_mount/tests/test_handlers.py +11 -0
  61. jupyterlab_data_mount-0.1.0/package.json +200 -0
  62. jupyterlab_data_mount-0.1.0/pyproject.toml +79 -0
  63. jupyterlab_data_mount-0.1.0/setup.py +1 -0
  64. jupyterlab_data_mount-0.1.0/src/TODO.txt +22 -0
  65. jupyterlab_data_mount-0.1.0/src/__tests__/jupyterlab_data_mount.spec.ts +9 -0
  66. jupyterlab_data_mount-0.1.0/src/commands.ts +61 -0
  67. jupyterlab_data_mount-0.1.0/src/components/aws.bkp +111 -0
  68. jupyterlab_data_mount-0.1.0/src/components/checkbox.tsx +96 -0
  69. jupyterlab_data_mount-0.1.0/src/components/dropdown.tsx +124 -0
  70. jupyterlab_data_mount-0.1.0/src/components/iconButton.tsx +22 -0
  71. jupyterlab_data_mount-0.1.0/src/components/optionrow.tsx +147 -0
  72. jupyterlab_data_mount-0.1.0/src/components/textfield.tsx +135 -0
  73. jupyterlab_data_mount-0.1.0/src/dialog/widget.tsx +297 -0
  74. jupyterlab_data_mount-0.1.0/src/handler.ts +115 -0
  75. jupyterlab_data_mount-0.1.0/src/icon.ts +43 -0
  76. jupyterlab_data_mount-0.1.0/src/index.ts +61 -0
  77. jupyterlab_data_mount-0.1.0/src/sidebar/body.bkp +54 -0
  78. jupyterlab_data_mount-0.1.0/src/sidebar/body.tsx +141 -0
  79. jupyterlab_data_mount-0.1.0/src/sidebar/header.tsx +70 -0
  80. jupyterlab_data_mount-0.1.0/src/sidebar/widget.tsx +201 -0
  81. jupyterlab_data_mount-0.1.0/src/svg.d.ts +4 -0
  82. jupyterlab_data_mount-0.1.0/src/templates/aws.tsx +122 -0
  83. jupyterlab_data_mount-0.1.0/src/templates/b2drop.tsx +98 -0
  84. jupyterlab_data_mount-0.1.0/src/templates/base.tsx +65 -0
  85. jupyterlab_data_mount-0.1.0/src/templates/generic.tsx +174 -0
  86. jupyterlab_data_mount-0.1.0/src/templates/s3.tsx +165 -0
  87. jupyterlab_data_mount-0.1.0/src/templates/webdav.tsx +127 -0
  88. jupyterlab_data_mount-0.1.0/style/base.css +141 -0
  89. jupyterlab_data_mount-0.1.0/style/img/cloud-storage-icon.svg +55 -0
  90. jupyterlab_data_mount-0.1.0/style/img/delete.svg +3 -0
  91. jupyterlab_data_mount-0.1.0/style/img/directory.svg +1 -0
  92. jupyterlab_data_mount-0.1.0/style/img/plus.svg +3 -0
  93. jupyterlab_data_mount-0.1.0/style/img/refresh.svg +4 -0
  94. jupyterlab_data_mount-0.1.0/style/img/settings.svg +4 -0
  95. jupyterlab_data_mount-0.1.0/style/img/stop.svg +4 -0
  96. jupyterlab_data_mount-0.1.0/style/img/tooltip.svg +4 -0
  97. jupyterlab_data_mount-0.1.0/style/index.css +1 -0
  98. jupyterlab_data_mount-0.1.0/style/index.js +1 -0
  99. jupyterlab_data_mount-0.1.0/tsconfig.json +24 -0
@@ -0,0 +1,19 @@
1
+ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2
+ _commit: v4.3.8
3
+ _src_path: https://github.com/jupyterlab/extension-template
4
+ author_email: t.kreuzer@fz-juelich.de
5
+ author_name: Tim Kreuzer
6
+ data_format: string
7
+ file_extension: ''
8
+ has_binder: false
9
+ has_settings: false
10
+ kind: server
11
+ labextension_name: jupyterlab_data_mount
12
+ mimetype: ''
13
+ mimetype_name: ''
14
+ project_short_description: A JupyterLab extension to mount external data storage
15
+ python_name: jupyterlab_data_mount
16
+ repository: https://github.com/jsc-jupyter/jupyterlab-data-mount
17
+ test: false
18
+ viewer_name: ''
19
+
@@ -0,0 +1,121 @@
1
+ *.bundle.*
2
+ lib/
3
+ node_modules/
4
+ *.log
5
+ .eslintcache
6
+ .stylelintcache
7
+ *.egg-info/
8
+ .ipynb_checkpoints
9
+ *.tsbuildinfo
10
+ jupyterlab_data_mount/labextension
11
+ # Version file is handled by hatchling
12
+ jupyterlab_data_mount/_version.py
13
+
14
+ # Created by https://www.gitignore.io/api/python
15
+ # Edit at https://www.gitignore.io/?templates=python
16
+
17
+ ### Python ###
18
+ # Byte-compiled / optimized / DLL files
19
+ __pycache__/
20
+ *.py[cod]
21
+ *$py.class
22
+
23
+ # C extensions
24
+ *.so
25
+
26
+ # Distribution / packaging
27
+ .Python
28
+ build/
29
+ develop-eggs/
30
+ dist/
31
+ downloads/
32
+ eggs/
33
+ .eggs/
34
+ lib/
35
+ lib64/
36
+ parts/
37
+ sdist/
38
+ var/
39
+ wheels/
40
+ pip-wheel-metadata/
41
+ share/python-wheels/
42
+ .installed.cfg
43
+ *.egg
44
+ MANIFEST
45
+
46
+ # PyInstaller
47
+ # Usually these files are written by a python script from a template
48
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
49
+ *.manifest
50
+ *.spec
51
+
52
+ # Installer logs
53
+ pip-log.txt
54
+ pip-delete-this-directory.txt
55
+
56
+ # Unit test / coverage reports
57
+ htmlcov/
58
+ .tox/
59
+ .nox/
60
+ .coverage
61
+ .coverage.*
62
+ .cache
63
+ nosetests.xml
64
+ coverage/
65
+ coverage.xml
66
+ *.cover
67
+ .hypothesis/
68
+ .pytest_cache/
69
+
70
+ # Translations
71
+ *.mo
72
+ *.pot
73
+
74
+ # Scrapy stuff:
75
+ .scrapy
76
+
77
+ # Sphinx documentation
78
+ docs/_build/
79
+
80
+ # PyBuilder
81
+ target/
82
+
83
+ # pyenv
84
+ .python-version
85
+
86
+ # celery beat schedule file
87
+ celerybeat-schedule
88
+
89
+ # SageMath parsed files
90
+ *.sage.py
91
+
92
+ # Spyder project settings
93
+ .spyderproject
94
+ .spyproject
95
+
96
+ # Rope project settings
97
+ .ropeproject
98
+
99
+ # Mr Developer
100
+ .mr.developer.cfg
101
+ .project
102
+ .pydevproject
103
+
104
+ # mkdocs documentation
105
+ /site
106
+
107
+ # mypy
108
+ .mypy_cache/
109
+ .dmypy.json
110
+ dmypy.json
111
+
112
+ # Pyre type checker
113
+ .pyre/
114
+
115
+ # End of https://www.gitignore.io/api/python
116
+
117
+ # OSX files
118
+ .DS_Store
119
+
120
+ # Yarn cache
121
+ .yarn/
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ **/node_modules
3
+ **/lib
4
+ **/package.json
5
+ !/package.json
6
+ jupyterlab_data_mount
@@ -0,0 +1 @@
1
+ nodeLinker: node-modules
@@ -0,0 +1,5 @@
1
+ # Changelog
2
+
3
+ <!-- <START NEW CHANGELOG ENTRY> -->
4
+
5
+ <!-- <END NEW CHANGELOG ENTRY> -->
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, Tim Kreuzer
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,157 @@
1
+ Metadata-Version: 2.4
2
+ Name: jupyterlab_data_mount
3
+ Version: 0.1.0
4
+ Summary: A JupyterLab extension to mount external data storage
5
+ Project-URL: Homepage, https://github.com/jsc-jupyter/jupyterlab-data-mount
6
+ Project-URL: Bug Tracker, https://github.com/jsc-jupyter/jupyterlab-data-mount/issues
7
+ Project-URL: Repository, https://github.com/jsc-jupyter/jupyterlab-data-mount.git
8
+ Author-email: Tim Kreuzer <t.kreuzer@fz-juelich.de>
9
+ License: BSD 3-Clause License
10
+
11
+ Copyright (c) 2025, Tim Kreuzer
12
+ All rights reserved.
13
+
14
+ Redistribution and use in source and binary forms, with or without
15
+ modification, are permitted provided that the following conditions are met:
16
+
17
+ 1. Redistributions of source code must retain the above copyright notice, this
18
+ list of conditions and the following disclaimer.
19
+
20
+ 2. Redistributions in binary form must reproduce the above copyright notice,
21
+ this list of conditions and the following disclaimer in the documentation
22
+ and/or other materials provided with the distribution.
23
+
24
+ 3. Neither the name of the copyright holder nor the names of its
25
+ contributors may be used to endorse or promote products derived from
26
+ this software without specific prior written permission.
27
+
28
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
32
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
34
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
35
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
36
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
37
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
+ License-File: LICENSE
39
+ Keywords: jupyter,jupyterlab,jupyterlab-extension
40
+ Classifier: Framework :: Jupyter
41
+ Classifier: Framework :: Jupyter :: JupyterLab
42
+ Classifier: Framework :: Jupyter :: JupyterLab :: 4
43
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions
44
+ Classifier: Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt
45
+ Classifier: License :: OSI Approved :: BSD License
46
+ Classifier: Programming Language :: Python
47
+ Classifier: Programming Language :: Python :: 3
48
+ Classifier: Programming Language :: Python :: 3.9
49
+ Classifier: Programming Language :: Python :: 3.10
50
+ Classifier: Programming Language :: Python :: 3.11
51
+ Classifier: Programming Language :: Python :: 3.12
52
+ Classifier: Programming Language :: Python :: 3.13
53
+ Requires-Python: >=3.9
54
+ Requires-Dist: jupyter-server<3,>=2.4.0
55
+ Description-Content-Type: text/markdown
56
+
57
+ # jupyterlab_data_mount
58
+
59
+ [![Github Actions Status](https://github.com/jsc-jupyter/jupyterlab-data-mount/workflows/Build/badge.svg)](https://github.com/jsc-jupyter/jupyterlab-data-mount/actions/workflows/build.yml)
60
+
61
+ A JupyterLab extension to mount external data storage
62
+
63
+ This extension is composed of a Python package named `jupyterlab_data_mount`
64
+ for the server extension and a NPM package named `jupyterlab_data_mount`
65
+ for the frontend extension.
66
+
67
+ ## Requirements
68
+
69
+ - JupyterLab >= 4.0.0
70
+
71
+ ## Install
72
+
73
+ To install the extension, execute:
74
+
75
+ ```bash
76
+ pip install jupyterlab_data_mount
77
+ ```
78
+
79
+ ## Uninstall
80
+
81
+ To remove the extension, execute:
82
+
83
+ ```bash
84
+ pip uninstall jupyterlab_data_mount
85
+ ```
86
+
87
+ ## Troubleshoot
88
+
89
+ If you are seeing the frontend extension, but it is not working, check
90
+ that the server extension is enabled:
91
+
92
+ ```bash
93
+ jupyter server extension list
94
+ ```
95
+
96
+ If the server extension is installed and enabled, but you are not seeing
97
+ the frontend extension, check the frontend extension is installed:
98
+
99
+ ```bash
100
+ jupyter labextension list
101
+ ```
102
+
103
+ ## Contributing
104
+
105
+ ### Development install
106
+
107
+ Note: You will need NodeJS to build the extension package.
108
+
109
+ The `jlpm` command is JupyterLab's pinned version of
110
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
111
+ `yarn` or `npm` in lieu of `jlpm` below.
112
+
113
+ ```bash
114
+ # Clone the repo to your local environment
115
+ # Change directory to the jupyterlab_data_mount directory
116
+ # Install package in development mode
117
+ pip install -e "."
118
+ # Link your development version of the extension with JupyterLab
119
+ jupyter labextension develop . --overwrite
120
+ # Server extension must be manually installed in develop mode
121
+ jupyter server extension enable jupyterlab_data_mount
122
+ # Rebuild extension Typescript source after making changes
123
+ jlpm build
124
+ ```
125
+
126
+ You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
127
+
128
+ ```bash
129
+ # Watch the source directory in one terminal, automatically rebuilding when needed
130
+ jlpm watch
131
+ # Run JupyterLab in another terminal
132
+ jupyter lab
133
+ ```
134
+
135
+ With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
136
+
137
+ By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
138
+
139
+ ```bash
140
+ jupyter lab build --minimize=False
141
+ ```
142
+
143
+ ### Development uninstall
144
+
145
+ ```bash
146
+ # Server extension must be manually disabled in develop mode
147
+ jupyter server extension disable jupyterlab_data_mount
148
+ pip uninstall jupyterlab_data_mount
149
+ ```
150
+
151
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
152
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
153
+ folder is located. Then you can remove the symlink named `jupyterlab_data_mount` within that folder.
154
+
155
+ ### Packaging the extension
156
+
157
+ See [RELEASE](RELEASE.md)
@@ -0,0 +1,101 @@
1
+ # jupyterlab_data_mount
2
+
3
+ [![Github Actions Status](https://github.com/jsc-jupyter/jupyterlab-data-mount/workflows/Build/badge.svg)](https://github.com/jsc-jupyter/jupyterlab-data-mount/actions/workflows/build.yml)
4
+
5
+ A JupyterLab extension to mount external data storage
6
+
7
+ This extension is composed of a Python package named `jupyterlab_data_mount`
8
+ for the server extension and a NPM package named `jupyterlab_data_mount`
9
+ for the frontend extension.
10
+
11
+ ## Requirements
12
+
13
+ - JupyterLab >= 4.0.0
14
+
15
+ ## Install
16
+
17
+ To install the extension, execute:
18
+
19
+ ```bash
20
+ pip install jupyterlab_data_mount
21
+ ```
22
+
23
+ ## Uninstall
24
+
25
+ To remove the extension, execute:
26
+
27
+ ```bash
28
+ pip uninstall jupyterlab_data_mount
29
+ ```
30
+
31
+ ## Troubleshoot
32
+
33
+ If you are seeing the frontend extension, but it is not working, check
34
+ that the server extension is enabled:
35
+
36
+ ```bash
37
+ jupyter server extension list
38
+ ```
39
+
40
+ If the server extension is installed and enabled, but you are not seeing
41
+ the frontend extension, check the frontend extension is installed:
42
+
43
+ ```bash
44
+ jupyter labextension list
45
+ ```
46
+
47
+ ## Contributing
48
+
49
+ ### Development install
50
+
51
+ Note: You will need NodeJS to build the extension package.
52
+
53
+ The `jlpm` command is JupyterLab's pinned version of
54
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
55
+ `yarn` or `npm` in lieu of `jlpm` below.
56
+
57
+ ```bash
58
+ # Clone the repo to your local environment
59
+ # Change directory to the jupyterlab_data_mount directory
60
+ # Install package in development mode
61
+ pip install -e "."
62
+ # Link your development version of the extension with JupyterLab
63
+ jupyter labextension develop . --overwrite
64
+ # Server extension must be manually installed in develop mode
65
+ jupyter server extension enable jupyterlab_data_mount
66
+ # Rebuild extension Typescript source after making changes
67
+ jlpm build
68
+ ```
69
+
70
+ You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
71
+
72
+ ```bash
73
+ # Watch the source directory in one terminal, automatically rebuilding when needed
74
+ jlpm watch
75
+ # Run JupyterLab in another terminal
76
+ jupyter lab
77
+ ```
78
+
79
+ With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
80
+
81
+ By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
82
+
83
+ ```bash
84
+ jupyter lab build --minimize=False
85
+ ```
86
+
87
+ ### Development uninstall
88
+
89
+ ```bash
90
+ # Server extension must be manually disabled in develop mode
91
+ jupyter server extension disable jupyterlab_data_mount
92
+ pip uninstall jupyterlab_data_mount
93
+ ```
94
+
95
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
96
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
97
+ folder is located. Then you can remove the symlink named `jupyterlab_data_mount` within that folder.
98
+
99
+ ### Packaging the extension
100
+
101
+ See [RELEASE](RELEASE.md)
@@ -0,0 +1,80 @@
1
+ # Making a new release of jupyterlab_data_mount
2
+
3
+ The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
4
+
5
+ ## Manual release
6
+
7
+ ### Python package
8
+
9
+ This extension can be distributed as Python packages. All of the Python
10
+ packaging instructions are in the `pyproject.toml` file to wrap your extension in a
11
+ Python package. Before generating a package, you first need to install some tools:
12
+
13
+ ```bash
14
+ pip install build twine hatch
15
+ ```
16
+
17
+ Bump the version using `hatch`. By default this will create a tag.
18
+ See the docs on [hatch-nodejs-version](https://github.com/agoose77/hatch-nodejs-version#semver) for details.
19
+
20
+ ```bash
21
+ hatch version <new-version>
22
+ ```
23
+
24
+ Make sure to clean up all the development files before building the package:
25
+
26
+ ```bash
27
+ jlpm clean:all
28
+ ```
29
+
30
+ You could also clean up the local git repository:
31
+
32
+ ```bash
33
+ git clean -dfX
34
+ ```
35
+
36
+ To create a Python source package (`.tar.gz`) and the binary package (`.whl`) in the `dist/` directory, do:
37
+
38
+ ```bash
39
+ python -m build
40
+ ```
41
+
42
+ > `python setup.py sdist bdist_wheel` is deprecated and will not work for this package.
43
+
44
+ Then to upload the package to PyPI, do:
45
+
46
+ ```bash
47
+ twine upload dist/*
48
+ ```
49
+
50
+ ### NPM package
51
+
52
+ To publish the frontend part of the extension as a NPM package, do:
53
+
54
+ ```bash
55
+ npm login
56
+ npm publish --access public
57
+ ```
58
+
59
+ ## Automated releases with the Jupyter Releaser
60
+
61
+ The extension repository should already be compatible with the Jupyter Releaser. But
62
+ the GitHub repository and the package managers need to be properly set up. Please
63
+ follow the instructions of the Jupyter Releaser [checklist](https://jupyter-releaser.readthedocs.io/en/latest/how_to_guides/convert_repo_from_repo.html).
64
+
65
+ Here is a summary of the steps to cut a new release:
66
+
67
+ - Go to the Actions panel
68
+ - Run the "Step 1: Prep Release" workflow
69
+ - Check the draft changelog
70
+ - Run the "Step 2: Publish Release" workflow
71
+
72
+ > [!NOTE]
73
+ > Check out the [workflow documentation](https://jupyter-releaser.readthedocs.io/en/latest/get_started/making_release_from_repo.html)
74
+ > for more information.
75
+
76
+ ## Publishing to `conda-forge`
77
+
78
+ If the package is not on conda forge yet, check the documentation to learn how to add it: https://conda-forge.org/docs/maintainer/adding_pkgs.html
79
+
80
+ Otherwise a bot should pick up the new version publish to PyPI, and open a new PR on the feedstock repository automatically.
@@ -0,0 +1,5 @@
1
+ {
2
+ "packageManager": "python",
3
+ "packageName": "jupyterlab_data_mount",
4
+ "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_data_mount"
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "ServerApp": {
3
+ "jpserver_extensions": {
4
+ "jupyterlab_data_mount": true
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,32 @@
1
+ try:
2
+ from ._version import __version__
3
+ except ImportError:
4
+ # Fallback when using the package in dev mode without installing
5
+ # in editable mode with pip. It is highly recommended to install
6
+ # the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
7
+ import warnings
8
+
9
+ warnings.warn("Importing 'jupyterlab_data_mount' outside a proper installation.")
10
+ __version__ = "dev"
11
+ from .handlers import setup_handlers
12
+
13
+
14
+ def _jupyter_labextension_paths():
15
+ return [{"src": "labextension", "dest": "jupyterlab-data-mount"}]
16
+
17
+
18
+ def _jupyter_server_extension_points():
19
+ return [{"module": "jupyterlab_data_mount"}]
20
+
21
+
22
+ def _load_jupyter_server_extension(server_app):
23
+ """Registers the API handler to receive HTTP requests from the frontend extension.
24
+
25
+ Parameters
26
+ ----------
27
+ server_app: jupyterlab.labapp.LabApp
28
+ JupyterLab application instance
29
+ """
30
+ setup_handlers(server_app.web_app)
31
+ name = "jupyterlab_data_mount"
32
+ server_app.log.info(f"Registered {name} server extension")
@@ -0,0 +1,4 @@
1
+ # This file is auto-generated by Hatchling. As such, do not:
2
+ # - modify
3
+ # - track in version control e.g. be sure to add to .gitignore
4
+ __version__ = VERSION = '0.1.0'