ecojupyter 0.1.208__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 (141) hide show
  1. ecojupyter-0.1.208/.copier-answers.yml +14 -0
  2. ecojupyter-0.1.208/.gitignore +133 -0
  3. ecojupyter-0.1.208/.prettierignore +6 -0
  4. ecojupyter-0.1.208/CHANGELOG.md +9 -0
  5. ecojupyter-0.1.208/LICENSE +29 -0
  6. ecojupyter-0.1.208/PKG-INFO +165 -0
  7. ecojupyter-0.1.208/README.md +110 -0
  8. ecojupyter-0.1.208/RELEASE.md +80 -0
  9. ecojupyter-0.1.208/analysis.ipynb +5642 -0
  10. ecojupyter-0.1.208/babel.config.js +1 -0
  11. ecojupyter-0.1.208/build-env/.gitignore +2 -0
  12. ecojupyter-0.1.208/build-env/bin/Activate.ps1 +248 -0
  13. ecojupyter-0.1.208/build-env/bin/activate +76 -0
  14. ecojupyter-0.1.208/build-env/bin/activate.csh +27 -0
  15. ecojupyter-0.1.208/build-env/bin/activate.fish +69 -0
  16. ecojupyter-0.1.208/build-env/bin/docutils +8 -0
  17. ecojupyter-0.1.208/build-env/bin/keyring +8 -0
  18. ecojupyter-0.1.208/build-env/bin/markdown-it +8 -0
  19. ecojupyter-0.1.208/build-env/bin/normalizer +8 -0
  20. ecojupyter-0.1.208/build-env/bin/pip +8 -0
  21. ecojupyter-0.1.208/build-env/bin/pip3 +8 -0
  22. ecojupyter-0.1.208/build-env/bin/pip3.13 +8 -0
  23. ecojupyter-0.1.208/build-env/bin/pygmentize +8 -0
  24. ecojupyter-0.1.208/build-env/bin/pyproject-build +8 -0
  25. ecojupyter-0.1.208/build-env/bin/python +1 -0
  26. ecojupyter-0.1.208/build-env/bin/python3 +1 -0
  27. ecojupyter-0.1.208/build-env/bin/python3.13 +1 -0
  28. ecojupyter-0.1.208/build-env/bin/rst2html +8 -0
  29. ecojupyter-0.1.208/build-env/bin/rst2html4 +8 -0
  30. ecojupyter-0.1.208/build-env/bin/rst2html5 +8 -0
  31. ecojupyter-0.1.208/build-env/bin/rst2latex +8 -0
  32. ecojupyter-0.1.208/build-env/bin/rst2man +8 -0
  33. ecojupyter-0.1.208/build-env/bin/rst2odt +8 -0
  34. ecojupyter-0.1.208/build-env/bin/rst2pseudoxml +8 -0
  35. ecojupyter-0.1.208/build-env/bin/rst2s5 +8 -0
  36. ecojupyter-0.1.208/build-env/bin/rst2xetex +8 -0
  37. ecojupyter-0.1.208/build-env/bin/rst2xml +8 -0
  38. ecojupyter-0.1.208/build-env/bin/twine +8 -0
  39. ecojupyter-0.1.208/build-env/pyvenv.cfg +5 -0
  40. ecojupyter-0.1.208/ecojupyter/__init__.py +16 -0
  41. ecojupyter-0.1.208/ecojupyter/_version.py +4 -0
  42. ecojupyter-0.1.208/ecojupyter/labextension/build_log.json +737 -0
  43. ecojupyter-0.1.208/ecojupyter/labextension/package.json +220 -0
  44. ecojupyter-0.1.208/ecojupyter/labextension/static/lib_index_js-webpack_sharing_consume_default_dayjs_dayjs.e90f9f3e959c660e92ec.js +1586 -0
  45. ecojupyter-0.1.208/ecojupyter/labextension/static/lib_index_js-webpack_sharing_consume_default_dayjs_dayjs.e90f9f3e959c660e92ec.js.map +1 -0
  46. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_classnames_index_js.21a6215cb843a29dc76e.js +91 -0
  47. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_classnames_index_js.21a6215cb843a29dc76e.js.map +1 -0
  48. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_d3-array_src_bisector_js-node_modules_d3-array_src_max_js-node_modules_d3-array_-0a7de0.cf2130cf6921c60e9ba5.js +183 -0
  49. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_d3-array_src_bisector_js-node_modules_d3-array_src_max_js-node_modules_d3-array_-0a7de0.cf2130cf6921c60e9ba5.js.map +1 -0
  50. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_dayjs_dayjs_min_js.67bf215857d5e3e32d55.js +14 -0
  51. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_dayjs_dayjs_min_js.67bf215857d5e3e32d55.js.map +1 -0
  52. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb40.6bfff6cbd48a0cedd7d7.js +94 -0
  53. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb40.6bfff6cbd48a0cedd7d7.js.map +1 -0
  54. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb41.f45d2ef005c471e81665.js +94 -0
  55. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_emotion_use-insertion-effect-with-fallbacks_dist_emotion-use-insertion-effect-wi-3c9bb41.f45d2ef005c471e81665.js.map +1 -0
  56. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_visx_event_esm_index_js.93bc365bfa9feef681b7.js +230 -0
  57. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_visx_event_esm_index_js.93bc365bfa9feef681b7.js.map +1 -0
  58. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_visx_group_esm_Group_js-_a7da0.e95bc8ccd4853b0298ca.js +141 -0
  59. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_visx_group_esm_Group_js-_a7da0.e95bc8ccd4853b0298ca.js.map +1 -0
  60. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_visx_group_esm_Group_js-_a7da1.7d088c979644ae960ea1.js +141 -0
  61. ecojupyter-0.1.208/ecojupyter/labextension/static/node_modules_visx_group_esm_Group_js-_a7da1.7d088c979644ae960ea1.js.map +1 -0
  62. ecojupyter-0.1.208/ecojupyter/labextension/static/remoteEntry.15268612a6e4196f8b84.js +600 -0
  63. ecojupyter-0.1.208/ecojupyter/labextension/static/remoteEntry.15268612a6e4196f8b84.js.map +1 -0
  64. ecojupyter-0.1.208/ecojupyter/labextension/static/style.js +4 -0
  65. ecojupyter-0.1.208/ecojupyter/labextension/static/style_index_js.ca437ccd8977d894a7c9.js +489 -0
  66. ecojupyter-0.1.208/ecojupyter/labextension/static/style_index_js.ca437ccd8977d894a7c9.js.map +1 -0
  67. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.7caa56513d73bb4569eb.js +507 -0
  68. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_babel_runtime_helpers_esm_extends_js-node_modules_emotion_serialize_dist-051195.7caa56513d73bb4569eb.js.map +1 -0
  69. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js.3234098e280ca6a7ba89.js +1864 -0
  70. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_emotion_cache_dist_emotion-cache_browser_development_esm_js.3234098e280ca6a7ba89.js.map +1 -0
  71. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.6dfdcf71625dd4773cd4.js +1266 -0
  72. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_emotion_react_dist_emotion-react_browser_development_esm_js.6dfdcf71625dd4773cd4.js.map +1 -0
  73. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.d1a990d1c6ebba7dc6ab.js +376 -0
  74. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_emotion_styled_dist_emotion-styled_browser_development_esm_js.d1a990d1c6ebba7dc6ab.js.map +1 -0
  75. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_mui_icons-material_esm_AddCircleOutlineRounded_js-node_modules_mui_icons-9cbc82.ef3b46ea34f6232ae9d1.js +23077 -0
  76. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_mui_icons-material_esm_AddCircleOutlineRounded_js-node_modules_mui_icons-9cbc82.ef3b46ea34f6232ae9d1.js.map +1 -0
  77. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_mui_material_Box_Box_js-node_modules_mui_material_Button_Button_js-node_-43ba37.2597093aae1b35c2b2ae.js +37466 -0
  78. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_mui_material_Box_Box_js-node_modules_mui_material_Button_Button_js-node_-43ba37.2597093aae1b35c2b2ae.js.map +1 -0
  79. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_mui_material_index_js.e224cdb25e8e2e5d7292.js +33612 -0
  80. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_mui_material_index_js.e224cdb25e8e2e5d7292.js.map +1 -0
  81. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_prop-types_index_js.44474126766786d97e01.js +1109 -0
  82. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_prop-types_index_js.44474126766786d97e01.js.map +1 -0
  83. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_axis_esm_index_js.a2769b52e91d1bdd3938.js +3589 -0
  84. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_axis_esm_index_js.a2769b52e91d1bdd3938.js.map +1 -0
  85. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_scale_esm_index_js.08d64f2d5a4985fb835e.js +6268 -0
  86. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_scale_esm_index_js.08d64f2d5a4985fb835e.js.map +1 -0
  87. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_shape_esm_index_js.bbc127223e607e59a397.js +4352 -0
  88. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_shape_esm_index_js.bbc127223e607e59a397.js.map +1 -0
  89. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_tooltip_esm_index_js.74327389cad56784977a.js +562 -0
  90. ecojupyter-0.1.208/ecojupyter/labextension/static/vendors-node_modules_visx_tooltip_esm_index_js.74327389cad56784977a.js.map +1 -0
  91. ecojupyter-0.1.208/install-scaphandre-prometheus.sh +57 -0
  92. ecojupyter-0.1.208/install.json +5 -0
  93. ecojupyter-0.1.208/jest.config.js +28 -0
  94. ecojupyter-0.1.208/package.json +215 -0
  95. ecojupyter-0.1.208/prometheus/cell_magic.py +25 -0
  96. ecojupyter-0.1.208/prometheus/influx-snippet.py +27 -0
  97. ecojupyter-0.1.208/prometheus/kpi-server.py +31 -0
  98. ecojupyter-0.1.208/prometheus/prometheus-docker-start.sh +6 -0
  99. ecojupyter-0.1.208/prometheus/prometheus-server.py +60 -0
  100. ecojupyter-0.1.208/prometheus/prometheus.yml +7 -0
  101. ecojupyter-0.1.208/prometheus/start_end_track.py +0 -0
  102. ecojupyter-0.1.208/pyproject.toml +77 -0
  103. ecojupyter-0.1.208/requirements.txt +7 -0
  104. ecojupyter-0.1.208/scripts/build-rel-package.sh +73 -0
  105. ecojupyter-0.1.208/setup.py +1 -0
  106. ecojupyter-0.1.208/src/api/ApiTemp.ts +137 -0
  107. ecojupyter-0.1.208/src/api/api-temp-openapi.yml +108 -0
  108. ecojupyter-0.1.208/src/api/getScaphData.ts +61 -0
  109. ecojupyter-0.1.208/src/components/AddButton.tsx +20 -0
  110. ecojupyter-0.1.208/src/components/BandHighLight.tsx +117 -0
  111. ecojupyter-0.1.208/src/components/ChartWrapper.tsx +101 -0
  112. ecojupyter-0.1.208/src/components/ControlledHighlight.tsx +135 -0
  113. ecojupyter-0.1.208/src/components/DateTimeRange.tsx +62 -0
  114. ecojupyter-0.1.208/src/components/DeleteIconButton.tsx +15 -0
  115. ecojupyter-0.1.208/src/components/GoBackButton.tsx +15 -0
  116. ecojupyter-0.1.208/src/components/MetricSelector.tsx +37 -0
  117. ecojupyter-0.1.208/src/components/NumberInput.tsx +30 -0
  118. ecojupyter-0.1.208/src/components/RefreshButton.tsx +17 -0
  119. ecojupyter-0.1.208/src/components/ScaphChart.tsx +206 -0
  120. ecojupyter-0.1.208/src/components/ScaphInstaller.tsx +102 -0
  121. ecojupyter-0.1.208/src/components/SelectComponent.tsx +83 -0
  122. ecojupyter-0.1.208/src/components/VerticalLinearStepper.tsx +225 -0
  123. ecojupyter-0.1.208/src/components/map/MapComponent.tsx +61 -0
  124. ecojupyter-0.1.208/src/components/progress/CircularWithValueLabel.tsx +60 -0
  125. ecojupyter-0.1.208/src/components/progress/LinearProgress.tsx +43 -0
  126. ecojupyter-0.1.208/src/components/table/CollapsibleTable.tsx +227 -0
  127. ecojupyter-0.1.208/src/dialog/CreateChartDialog.tsx +107 -0
  128. ecojupyter-0.1.208/src/helpers/constants.ts +3 -0
  129. ecojupyter-0.1.208/src/helpers/types.ts +0 -0
  130. ecojupyter-0.1.208/src/helpers/utils.ts +35 -0
  131. ecojupyter-0.1.208/src/index.ts +93 -0
  132. ecojupyter-0.1.208/src/pages/ChartsPage.tsx +105 -0
  133. ecojupyter-0.1.208/src/pages/GeneralDashboard.tsx +156 -0
  134. ecojupyter-0.1.208/src/pages/GrafanaPage.tsx +24 -0
  135. ecojupyter-0.1.208/src/pages/WelcomePage.tsx +84 -0
  136. ecojupyter-0.1.208/src/server/server.ts +85 -0
  137. ecojupyter-0.1.208/src/widget.tsx +116 -0
  138. ecojupyter-0.1.208/style/base.css +5 -0
  139. ecojupyter-0.1.208/style/index.css +1 -0
  140. ecojupyter-0.1.208/style/index.js +1 -0
  141. ecojupyter-0.1.208/tsconfig.json +25 -0
@@ -0,0 +1,14 @@
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: g.j.teixeiradepinhoferreira@gmail.com
5
+ author_name: Gonçalo Ferreira
6
+ has_binder: false
7
+ has_settings: false
8
+ kind: frontend
9
+ labextension_name: ecojupyter
10
+ project_short_description: A JupyterLab extension for sustainability metrics.
11
+ python_name: ecojupyter
12
+ repository: https://github.com/g-uva/EcoJupyter
13
+ test: false
14
+
@@ -0,0 +1,133 @@
1
+ *.bundle.*
2
+ lib/
3
+ node_modules/
4
+ *.log
5
+ .eslintcache
6
+ .stylelintcache
7
+ *.egg-info/
8
+ .ipynb_checkpoints
9
+ *.tsbuildinfo
10
+ ecojupyter/labextension
11
+ # Version file is handled by hatchling
12
+ ecojupyter/_version.py
13
+
14
+ # Integration tests
15
+ ui-tests/test-results/
16
+ ui-tests/playwright-report/
17
+
18
+ # Created by https://www.gitignore.io/api/python
19
+ # Edit at https://www.gitignore.io/?templates=python
20
+
21
+ ### Python ###
22
+ # Byte-compiled / optimized / DLL files
23
+ __pycache__/
24
+ *.py[cod]
25
+ *$py.class
26
+
27
+ # C extensions
28
+ *.so
29
+
30
+ # Distribution / packaging
31
+ .Python
32
+ build/
33
+ develop-eggs/
34
+ dist/
35
+ downloads/
36
+ eggs/
37
+ .eggs/
38
+ lib/
39
+ lib64/
40
+ parts/
41
+ sdist/
42
+ var/
43
+ wheels/
44
+ pip-wheel-metadata/
45
+ share/python-wheels/
46
+ .installed.cfg
47
+ *.egg
48
+ MANIFEST
49
+
50
+ # PyInstaller
51
+ # Usually these files are written by a python script from a template
52
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
53
+ *.manifest
54
+ *.spec
55
+
56
+ # Installer logs
57
+ pip-log.txt
58
+ pip-delete-this-directory.txt
59
+
60
+ # Unit test / coverage reports
61
+ htmlcov/
62
+ .tox/
63
+ .nox/
64
+ .coverage
65
+ .coverage.*
66
+ .cache
67
+ nosetests.xml
68
+ coverage/
69
+ coverage.xml
70
+ *.cover
71
+ .hypothesis/
72
+ .pytest_cache/
73
+
74
+ # Translations
75
+ *.mo
76
+ *.pot
77
+
78
+ # Scrapy stuff:
79
+ .scrapy
80
+
81
+ # Sphinx documentation
82
+ docs/_build/
83
+
84
+ # PyBuilder
85
+ target/
86
+
87
+ # pyenv
88
+ .python-version
89
+
90
+ # celery beat schedule file
91
+ celerybeat-schedule
92
+
93
+ # SageMath parsed files
94
+ *.sage.py
95
+
96
+ # Spyder project settings
97
+ .spyderproject
98
+ .spyproject
99
+
100
+ # Rope project settings
101
+ .ropeproject
102
+
103
+ # Mr Developer
104
+ .mr.developer.cfg
105
+ .project
106
+ .pydevproject
107
+
108
+ # mkdocs documentation
109
+ /site
110
+
111
+ # mypy
112
+ .mypy_cache/
113
+ .dmypy.json
114
+ dmypy.json
115
+
116
+ # Pyre type checker
117
+ .pyre/
118
+
119
+ # End of https://www.gitignore.io/api/python
120
+
121
+ # OSX files
122
+ .DS_Store
123
+
124
+ # Yarn cache
125
+ .yarn/
126
+
127
+ .yarnrc.yml
128
+ yarn.lock
129
+
130
+ .secrets
131
+ data/**
132
+
133
+ .env
@@ -0,0 +1,6 @@
1
+ node_modules
2
+ **/node_modules
3
+ **/lib
4
+ **/package.json
5
+ !/package.json
6
+ ecojupyter
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ <!-- <START NEW CHANGELOG ENTRY> -->
4
+
5
+ ## 0.1.2
6
+
7
+ No merged PRs
8
+
9
+ <!-- <END NEW CHANGELOG ENTRY> -->
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2025, Gonçalo Ferreira
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,165 @@
1
+ Metadata-Version: 2.4
2
+ Name: ecojupyter
3
+ Version: 0.1.208
4
+ Summary: A JupyterLab extension for workflow sustainability metrics.
5
+ Project-URL: Homepage, https://github.com/g-uva/EcoJupyter
6
+ Project-URL: Bug Tracker, https://github.com/g-uva/EcoJupyter/issues
7
+ Project-URL: Repository, https://github.com/g-uva/EcoJupyter.git
8
+ Author-email: Gonçalo Ferreira <g.j.teixeiradepinhoferreira@uva.nl>
9
+ License: BSD 3-Clause License
10
+
11
+ Copyright (c) 2025, Gonçalo Ferreira
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.8
54
+ Description-Content-Type: text/markdown
55
+
56
+ ## 🌱🌍♻️ EcoJupyter (GreenDIGIT project)
57
+
58
+ ### Usage
59
+ 1. Installation
60
+
61
+ #### 1. Installation
62
+ ```sh
63
+ pip install
64
+ ```
65
+
66
+ <!-- [![Github Actions Status](https://github.com/g-uva/egi-jupyterlab-extension.git/workflows/Build/badge.svg)](https://github.com/g-uva/egi-jupyterlab-extension.git/actions/workflows/build.yml)
67
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/g-uva/egi-jupyterlab-extension.git/main?urlpath=lab) -->
68
+
69
+ > Related project: https://github.com/g-uva/jupyterhub-scaphandre-monitor
70
+
71
+ <!--
72
+
73
+ A JupyterLab extension for EGI and Notebooks.
74
+
75
+ ## Requirements
76
+
77
+ - JupyterLab >= 4.0.0
78
+
79
+ ## Install
80
+
81
+ To install the extension, execute:
82
+
83
+ ```bash
84
+ pip install ecojupyter
85
+ ```
86
+
87
+ ## Uninstall
88
+
89
+ To remove the extension, execute:
90
+
91
+ ```bash
92
+ pip uninstall ecojupyter
93
+ ```
94
+
95
+ ## Contributing
96
+
97
+ ### Development install
98
+
99
+ Note: You will need NodeJS to build the extension package.
100
+
101
+ The `jlpm` command is JupyterLab's pinned version of
102
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
103
+ `yarn` or `npm` in lieu of `jlpm` below.
104
+
105
+ ```bash
106
+ # Clone the repo to your local environment
107
+ # Change directory to the ecojupyter directory
108
+ # Install package in development mode
109
+ pip install -e "."
110
+ # Link your development version of the extension with JupyterLab
111
+ jupyter labextension develop . --overwrite
112
+ # Rebuild extension Typescript source after making changes
113
+ jlpm build
114
+ ```
115
+
116
+ 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.
117
+
118
+ ```bash
119
+ # Watch the source directory in one terminal, automatically rebuilding when needed
120
+ jlpm watch
121
+ # Run JupyterLab in another terminal
122
+ jupyter lab
123
+ ```
124
+
125
+ 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).
126
+
127
+ 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:
128
+
129
+ ```bash
130
+ jupyter lab build --minimize=False
131
+ ```
132
+
133
+ ### Development uninstall
134
+
135
+ ```bash
136
+ pip uninstall ecojupyter
137
+ ```
138
+
139
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
140
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
141
+ folder is located. Then you can remove the symlink named `egi-jupyterlab-ext` within that folder.
142
+
143
+ ### Testing the extension
144
+
145
+ #### Frontend tests
146
+
147
+ This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.
148
+
149
+ To execute them, execute:
150
+
151
+ ```sh
152
+ jlpm
153
+ jlpm test
154
+ ```
155
+
156
+ #### Integration tests
157
+
158
+ This extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests).
159
+ More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.
160
+
161
+ More information are provided within the [ui-tests](./ui-tests/README.md) README.
162
+
163
+ ### Packaging the extension
164
+
165
+ See [RELEASE](RELEASE.md) -->
@@ -0,0 +1,110 @@
1
+ ## 🌱🌍♻️ EcoJupyter (GreenDIGIT project)
2
+
3
+ ### Usage
4
+ 1. Installation
5
+
6
+ #### 1. Installation
7
+ ```sh
8
+ pip install
9
+ ```
10
+
11
+ <!-- [![Github Actions Status](https://github.com/g-uva/egi-jupyterlab-extension.git/workflows/Build/badge.svg)](https://github.com/g-uva/egi-jupyterlab-extension.git/actions/workflows/build.yml)
12
+ [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/g-uva/egi-jupyterlab-extension.git/main?urlpath=lab) -->
13
+
14
+ > Related project: https://github.com/g-uva/jupyterhub-scaphandre-monitor
15
+
16
+ <!--
17
+
18
+ A JupyterLab extension for EGI and Notebooks.
19
+
20
+ ## Requirements
21
+
22
+ - JupyterLab >= 4.0.0
23
+
24
+ ## Install
25
+
26
+ To install the extension, execute:
27
+
28
+ ```bash
29
+ pip install ecojupyter
30
+ ```
31
+
32
+ ## Uninstall
33
+
34
+ To remove the extension, execute:
35
+
36
+ ```bash
37
+ pip uninstall ecojupyter
38
+ ```
39
+
40
+ ## Contributing
41
+
42
+ ### Development install
43
+
44
+ Note: You will need NodeJS to build the extension package.
45
+
46
+ The `jlpm` command is JupyterLab's pinned version of
47
+ [yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
48
+ `yarn` or `npm` in lieu of `jlpm` below.
49
+
50
+ ```bash
51
+ # Clone the repo to your local environment
52
+ # Change directory to the ecojupyter directory
53
+ # Install package in development mode
54
+ pip install -e "."
55
+ # Link your development version of the extension with JupyterLab
56
+ jupyter labextension develop . --overwrite
57
+ # Rebuild extension Typescript source after making changes
58
+ jlpm build
59
+ ```
60
+
61
+ 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.
62
+
63
+ ```bash
64
+ # Watch the source directory in one terminal, automatically rebuilding when needed
65
+ jlpm watch
66
+ # Run JupyterLab in another terminal
67
+ jupyter lab
68
+ ```
69
+
70
+ 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).
71
+
72
+ 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:
73
+
74
+ ```bash
75
+ jupyter lab build --minimize=False
76
+ ```
77
+
78
+ ### Development uninstall
79
+
80
+ ```bash
81
+ pip uninstall ecojupyter
82
+ ```
83
+
84
+ In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
85
+ command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
86
+ folder is located. Then you can remove the symlink named `egi-jupyterlab-ext` within that folder.
87
+
88
+ ### Testing the extension
89
+
90
+ #### Frontend tests
91
+
92
+ This extension is using [Jest](https://jestjs.io/) for JavaScript code testing.
93
+
94
+ To execute them, execute:
95
+
96
+ ```sh
97
+ jlpm
98
+ jlpm test
99
+ ```
100
+
101
+ #### Integration tests
102
+
103
+ This extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests).
104
+ More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab.
105
+
106
+ More information are provided within the [ui-tests](./ui-tests/README.md) README.
107
+
108
+ ### Packaging the extension
109
+
110
+ See [RELEASE](RELEASE.md) -->
@@ -0,0 +1,80 @@
1
+ # Making a new release of ecojupyter
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.