@galaxyproject/jupyterlite 0.0.16 → 0.0.17

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.
@@ -5,21 +5,6 @@
5
5
  "appVersion": "0.6.4",
6
6
  "baseUrl": "./",
7
7
  "defaultKernelName": "python",
8
- "disabledExtensions": [
9
- "@jupyterlab/filebrowser-extension",
10
- "@jupyterlab/launcher-extension",
11
- "@jupyterlab/running-extension",
12
- "@jupyterlab/toc-extension",
13
- "@jupyterlab/fileeditor-extension:plugin",
14
- "@jupyterlab/fileeditor-extension:cursor-position",
15
- "@jupyterlab/fileeditor-extension:completer",
16
- "@jupyterlab/fileeditor-extension:language-server",
17
- "@jupyterlab/fileeditor-extension:editor-syntax-status",
18
- "@jupyterlab/fileeditor-extension:tab-space-status",
19
- "@jupyterlab/notebook-extension:toc",
20
- "@jupyterlite/application-extension:share-file",
21
- "@jupyterlab/tooltip-extension:files"
22
- ],
23
8
  "faviconUrl": "./lab/favicon.ico",
24
9
  "federated_extensions": [
25
10
  {
@@ -27,16 +12,16 @@
27
12
  "load": "static/remoteEntry.3745c44cbbd62cec9a73.js",
28
13
  "name": "@jupyterlite/pyodide-kernel-extension"
29
14
  },
30
- {
31
- "extension": "./extension",
32
- "load": "entry.js",
33
- "name": "jl-galaxy"
34
- },
35
15
  {
36
16
  "extension": "./extension",
37
17
  "load": "static/remoteEntry.5cbb9d2323598fbda535.js",
38
18
  "name": "jupyterlab_pygments",
39
19
  "style": "./style"
20
+ },
21
+ {
22
+ "name": "jl-galaxy",
23
+ "load": "entry.js",
24
+ "extension": "./extension"
40
25
  }
41
26
  ],
42
27
  "fileTypes": {
@@ -326,7 +311,7 @@
326
311
  "../../../../pypi/jsonschema-4.25.1-py3-none-any.whl",
327
312
  "../../../../pypi/jsonschema_specifications-2025.9.1-py3-none-any.whl",
328
313
  "../../../../pypi/jupyter_core-5.8.1-py3-none-any.whl",
329
- "../../../../pypi/narwhals-2.5.0-py3-none-any.whl",
314
+ "../../../../pypi/narwhals-2.6.0-py3-none-any.whl",
330
315
  "../../../../pypi/nbformat-5.10.4-py3-none-any.whl",
331
316
  "../../../../pypi/packaging-25.0-py3-none-any.whl",
332
317
  "../../../../pypi/platformdirs-4.4.0-py3-none-any.whl",
@@ -340,7 +325,22 @@
340
325
  ]
341
326
  }
342
327
  }
343
- }
328
+ },
329
+ "disabledExtensions": [
330
+ "@jupyterlab/filebrowser-extension",
331
+ "@jupyterlab/launcher-extension",
332
+ "@jupyterlab/running-extension",
333
+ "@jupyterlab/toc-extension",
334
+ "@jupyterlab/fileeditor-extension:plugin",
335
+ "@jupyterlab/fileeditor-extension:cursor-position",
336
+ "@jupyterlab/fileeditor-extension:completer",
337
+ "@jupyterlab/fileeditor-extension:language-server",
338
+ "@jupyterlab/fileeditor-extension:editor-syntax-status",
339
+ "@jupyterlab/fileeditor-extension:tab-space-status",
340
+ "@jupyterlab/notebook-extension:toc",
341
+ "@jupyterlite/application-extension:share-file",
342
+ "@jupyterlab/tooltip-extension:files"
343
+ ]
344
344
  },
345
345
  "jupyter-lite-schema-version": 0
346
346
  }
@@ -1,21 +1,54 @@
1
- // Access container element
2
- const appElement = document.querySelector("#app");
1
+ async function create() {
2
+ // Access container element
3
+ const appElement = document.querySelector("#app");
3
4
 
4
- // Access attached data
5
- const incoming = JSON.parse(appElement?.dataset.incoming || "{}");
6
- const datasetId = incoming.visualization_config.dataset_id;
7
- const root = incoming.root;
5
+ // Access attached data
6
+ const incoming = JSON.parse(appElement?.dataset.incoming || "{}");
7
+ const datasetId = incoming.visualization_config.dataset_id;
8
+ const root = incoming.root;
8
9
 
9
- // Build query string
10
- const params = { root };
11
- if (datasetId !== undefined) {
12
- params.dataset_id = datasetId;
10
+ // Collect query params
11
+ const params = { root };
12
+ if (datasetId !== undefined) {
13
+ params.dataset_id = datasetId;
14
+ // Identify history from dataset
15
+ try {
16
+ const response = await fetch(`${root}api/datasets/${datasetId}`);
17
+ if (response.ok) {
18
+ const { history_id: historyId } = await response.json();
19
+ params.history_id = historyId;
20
+ console.error(`[jupyterlite] Identified history from dataset: ${historyId}.`);
21
+ } else {
22
+ console.error("[jupyterlite] Failed to determine current history from dataset.");
23
+ }
24
+ } catch (e) {
25
+ console.error("[jupyterlite] Failed to make fetch request to obtain history from dataset.");
26
+ }
27
+ } else {
28
+ // Identify current history without dataset
29
+ try {
30
+ const response = await fetch(`${root}history/current_history_json`);
31
+ if (response.ok) {
32
+ const { id: historyId } = await response.json();
33
+ params.history_id = historyId;
34
+ console.error(`[jupyterlite] Identified history: ${historyId}.`);
35
+ } else {
36
+ console.error("[jupyterlite] Failed to determine current history.");
37
+ }
38
+ } catch (e) {
39
+ console.error("[jupyterlite] Failed to make fetch request to obtain history.");
40
+ }
41
+ }
42
+
43
+ // Build query string
44
+ const query = new URLSearchParams(params).toString();
45
+
46
+ // Load jupyter
47
+ (function () {
48
+ const jupyterRoot = `${root}static/plugins/visualizations/jupyterlite/static/dist/_output/lab`;
49
+ const jupyterTarget = `${jupyterRoot}/index.html?${query}`;
50
+ window.location.replace(jupyterTarget);
51
+ })();
13
52
  }
14
- const query = new URLSearchParams(params).toString();
15
53
 
16
- // Load jupyter
17
- (function () {
18
- const jupyterRoot = `${root}static/plugins/visualizations/jupyterlite/static/dist/_output/lab`;
19
- const jupyterTarget = `${jupyterRoot}/index.html?${query}`;
20
- window.location.replace(jupyterTarget);
21
- })();
54
+ create();
@@ -1,366 +0,0 @@
1
- {
2
- "attrs": {
3
- "releases": {
4
- "25.3.0": [
5
- {
6
- "comment_text": "",
7
- "digests": {
8
- "md5": "a14ebc7e5f8ba18887b09460ada729e6",
9
- "sha256": "427318ce031701fea540783410126f03899a97ffc6f61596ad581ac2e40e3bc3"
10
- },
11
- "downloads": -1,
12
- "filename": "attrs-25.3.0-py3-none-any.whl",
13
- "has_sig": false,
14
- "md5_digest": "a14ebc7e5f8ba18887b09460ada729e6",
15
- "packagetype": "bdist_wheel",
16
- "python_version": "py3",
17
- "requires_python": ">=3.8",
18
- "size": 63815,
19
- "upload_time": "2025-09-17T09:36:46.630413Z",
20
- "upload_time_iso_8601": "2025-09-17T09:36:46.630413Z",
21
- "url": "./attrs-25.3.0-py3-none-any.whl",
22
- "yanked": false,
23
- "yanked_reason": null
24
- }
25
- ]
26
- }
27
- },
28
- "fastjsonschema": {
29
- "releases": {
30
- "2.21.2": [
31
- {
32
- "comment_text": "",
33
- "digests": {
34
- "md5": "55d9e448f9be2a57eabbbd1deeda559c",
35
- "sha256": "1c797122d0a86c5cace2e54bf4e819c36223b552017172f32c5c024a6b77e463"
36
- },
37
- "downloads": -1,
38
- "filename": "fastjsonschema-2.21.2-py3-none-any.whl",
39
- "has_sig": false,
40
- "md5_digest": "55d9e448f9be2a57eabbbd1deeda559c",
41
- "packagetype": "bdist_wheel",
42
- "python_version": "py3",
43
- "requires_python": null,
44
- "size": 24024,
45
- "upload_time": "2025-09-17T09:36:46.625372Z",
46
- "upload_time_iso_8601": "2025-09-17T09:36:46.625372Z",
47
- "url": "./fastjsonschema-2.21.2-py3-none-any.whl",
48
- "yanked": false,
49
- "yanked_reason": null
50
- }
51
- ]
52
- }
53
- },
54
- "gxy": {
55
- "releases": {
56
- "0.0.0": [
57
- {
58
- "comment_text": "",
59
- "digests": {
60
- "md5": "e7ff2283a4fd971154fa472e06a7c448",
61
- "sha256": "9f44a55ef03d619c5584e36a1c6bbddf56ebbd1c58e475bb63afb9ebc7f2da98"
62
- },
63
- "downloads": -1,
64
- "filename": "gxy-0.0.0-py3-none-any.whl",
65
- "has_sig": false,
66
- "md5_digest": "e7ff2283a4fd971154fa472e06a7c448",
67
- "packagetype": "bdist_wheel",
68
- "python_version": "py3",
69
- "requires_python": ">=3.7",
70
- "size": 4276,
71
- "upload_time": "2025-09-17T09:36:43.535482Z",
72
- "upload_time_iso_8601": "2025-09-17T09:36:43.535482Z",
73
- "url": "./gxy-0.0.0-py3-none-any.whl",
74
- "yanked": false,
75
- "yanked_reason": null
76
- }
77
- ]
78
- }
79
- },
80
- "jsonschema": {
81
- "releases": {
82
- "4.25.1": [
83
- {
84
- "comment_text": "",
85
- "digests": {
86
- "md5": "b0f1d9abf090407e4dafd026bce97af3",
87
- "sha256": "3fba0169e345c7175110351d456342c364814cfcf3b964ba4587f22915230a63"
88
- },
89
- "downloads": -1,
90
- "filename": "jsonschema-4.25.1-py3-none-any.whl",
91
- "has_sig": false,
92
- "md5_digest": "b0f1d9abf090407e4dafd026bce97af3",
93
- "packagetype": "bdist_wheel",
94
- "python_version": "py3",
95
- "requires_python": ">=3.9",
96
- "size": 90040,
97
- "upload_time": "2025-09-17T09:36:46.626218Z",
98
- "upload_time_iso_8601": "2025-09-17T09:36:46.626218Z",
99
- "url": "./jsonschema-4.25.1-py3-none-any.whl",
100
- "yanked": false,
101
- "yanked_reason": null
102
- }
103
- ]
104
- }
105
- },
106
- "jsonschema-specifications": {
107
- "releases": {
108
- "2025.9.1": [
109
- {
110
- "comment_text": "",
111
- "digests": {
112
- "md5": "3bc19f16b4b7bf78e337a39664d3d7ac",
113
- "sha256": "98802fee3a11ee76ecaca44429fda8a41bff98b00a0f2838151b113f210cc6fe"
114
- },
115
- "downloads": -1,
116
- "filename": "jsonschema_specifications-2025.9.1-py3-none-any.whl",
117
- "has_sig": false,
118
- "md5_digest": "3bc19f16b4b7bf78e337a39664d3d7ac",
119
- "packagetype": "bdist_wheel",
120
- "python_version": "py3",
121
- "requires_python": ">=3.9",
122
- "size": 18437,
123
- "upload_time": "2025-09-17T09:36:46.631218Z",
124
- "upload_time_iso_8601": "2025-09-17T09:36:46.631218Z",
125
- "url": "./jsonschema_specifications-2025.9.1-py3-none-any.whl",
126
- "yanked": false,
127
- "yanked_reason": null
128
- }
129
- ]
130
- }
131
- },
132
- "jupyter-core": {
133
- "releases": {
134
- "5.8.1": [
135
- {
136
- "comment_text": "",
137
- "digests": {
138
- "md5": "0c936e9bcea5169653bbad5f6a33907c",
139
- "sha256": "c28d268fc90fb53f1338ded2eb410704c5449a358406e8a948b75706e24863d0"
140
- },
141
- "downloads": -1,
142
- "filename": "jupyter_core-5.8.1-py3-none-any.whl",
143
- "has_sig": false,
144
- "md5_digest": "0c936e9bcea5169653bbad5f6a33907c",
145
- "packagetype": "bdist_wheel",
146
- "python_version": "py3",
147
- "requires_python": ">=3.8",
148
- "size": 28880,
149
- "upload_time": "2025-09-17T09:36:46.627012Z",
150
- "upload_time_iso_8601": "2025-09-17T09:36:46.627012Z",
151
- "url": "./jupyter_core-5.8.1-py3-none-any.whl",
152
- "yanked": false,
153
- "yanked_reason": null
154
- }
155
- ]
156
- }
157
- },
158
- "narwhals": {
159
- "releases": {
160
- "2.5.0": [
161
- {
162
- "comment_text": "",
163
- "digests": {
164
- "md5": "20d3d1197c8fd08ac1339d30e74098cb",
165
- "sha256": "7e213f9ca7db3f8bf6f7eff35eaee6a1cf80902997e1b78d49b7755775d8f423"
166
- },
167
- "downloads": -1,
168
- "filename": "narwhals-2.5.0-py3-none-any.whl",
169
- "has_sig": false,
170
- "md5_digest": "20d3d1197c8fd08ac1339d30e74098cb",
171
- "packagetype": "bdist_wheel",
172
- "python_version": "py3",
173
- "requires_python": ">=3.9",
174
- "size": 407296,
175
- "upload_time": "2025-09-17T09:36:46.627965Z",
176
- "upload_time_iso_8601": "2025-09-17T09:36:46.627965Z",
177
- "url": "./narwhals-2.5.0-py3-none-any.whl",
178
- "yanked": false,
179
- "yanked_reason": null
180
- }
181
- ]
182
- }
183
- },
184
- "nbformat": {
185
- "releases": {
186
- "5.10.4": [
187
- {
188
- "comment_text": "",
189
- "digests": {
190
- "md5": "a6d58960984e33b0d52d74feb54177f6",
191
- "sha256": "3b48d6c8fbca4b299bf3982ea7db1af21580e4fec269ad087b9e81588891200b"
192
- },
193
- "downloads": -1,
194
- "filename": "nbformat-5.10.4-py3-none-any.whl",
195
- "has_sig": false,
196
- "md5_digest": "a6d58960984e33b0d52d74feb54177f6",
197
- "packagetype": "bdist_wheel",
198
- "python_version": "py3",
199
- "requires_python": ">=3.8",
200
- "size": 78454,
201
- "upload_time": "2025-09-17T09:36:46.623670Z",
202
- "upload_time_iso_8601": "2025-09-17T09:36:46.623670Z",
203
- "url": "./nbformat-5.10.4-py3-none-any.whl",
204
- "yanked": false,
205
- "yanked_reason": null
206
- }
207
- ]
208
- }
209
- },
210
- "packaging": {
211
- "releases": {
212
- "25.0": [
213
- {
214
- "comment_text": "",
215
- "digests": {
216
- "md5": "5fa4842e2eb0d7883b4b0e7c42d6229e",
217
- "sha256": "29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484"
218
- },
219
- "downloads": -1,
220
- "filename": "packaging-25.0-py3-none-any.whl",
221
- "has_sig": false,
222
- "md5_digest": "5fa4842e2eb0d7883b4b0e7c42d6229e",
223
- "packagetype": "bdist_wheel",
224
- "python_version": "py3",
225
- "requires_python": ">=3.8",
226
- "size": 66469,
227
- "upload_time": "2025-09-17T09:36:46.629604Z",
228
- "upload_time_iso_8601": "2025-09-17T09:36:46.629604Z",
229
- "url": "./packaging-25.0-py3-none-any.whl",
230
- "yanked": false,
231
- "yanked_reason": null
232
- }
233
- ]
234
- }
235
- },
236
- "platformdirs": {
237
- "releases": {
238
- "4.4.0": [
239
- {
240
- "comment_text": "",
241
- "digests": {
242
- "md5": "7a7157b96e8b044a863385bca57212e0",
243
- "sha256": "abd01743f24e5287cd7a5db3752faf1a2d65353f38ec26d98e25a6db65958c85"
244
- },
245
- "downloads": -1,
246
- "filename": "platformdirs-4.4.0-py3-none-any.whl",
247
- "has_sig": false,
248
- "md5_digest": "7a7157b96e8b044a863385bca57212e0",
249
- "packagetype": "bdist_wheel",
250
- "python_version": "py3",
251
- "requires_python": ">=3.9",
252
- "size": 18654,
253
- "upload_time": "2025-09-17T09:36:46.632008Z",
254
- "upload_time_iso_8601": "2025-09-17T09:36:46.632008Z",
255
- "url": "./platformdirs-4.4.0-py3-none-any.whl",
256
- "yanked": false,
257
- "yanked_reason": null
258
- }
259
- ]
260
- }
261
- },
262
- "plotly": {
263
- "releases": {
264
- "6.3.0": [
265
- {
266
- "comment_text": "",
267
- "digests": {
268
- "md5": "70a12976eea112f99d75736e68e110b7",
269
- "sha256": "7ad806edce9d3cdd882eaebaf97c0c9e252043ed1ed3d382c3e3520ec07806d4"
270
- },
271
- "downloads": -1,
272
- "filename": "plotly-6.3.0-py3-none-any.whl",
273
- "has_sig": false,
274
- "md5_digest": "70a12976eea112f99d75736e68e110b7",
275
- "packagetype": "bdist_wheel",
276
- "python_version": "py3",
277
- "requires_python": ">=3.8",
278
- "size": 9791257,
279
- "upload_time": "2025-09-17T09:36:46.622356Z",
280
- "upload_time_iso_8601": "2025-09-17T09:36:46.622356Z",
281
- "url": "./plotly-6.3.0-py3-none-any.whl",
282
- "yanked": false,
283
- "yanked_reason": null
284
- }
285
- ]
286
- }
287
- },
288
- "referencing": {
289
- "releases": {
290
- "0.36.2": [
291
- {
292
- "comment_text": "",
293
- "digests": {
294
- "md5": "d531b05b57e25723830b8f1b7e7e3644",
295
- "sha256": "e8699adbbf8b5c7de96d8ffa0eb5c158b3beafce084968e2ea8bb08c6794dcd0"
296
- },
297
- "downloads": -1,
298
- "filename": "referencing-0.36.2-py3-none-any.whl",
299
- "has_sig": false,
300
- "md5_digest": "d531b05b57e25723830b8f1b7e7e3644",
301
- "packagetype": "bdist_wheel",
302
- "python_version": "py3",
303
- "requires_python": ">=3.9",
304
- "size": 26775,
305
- "upload_time": "2025-09-17T09:36:46.632838Z",
306
- "upload_time_iso_8601": "2025-09-17T09:36:46.632838Z",
307
- "url": "./referencing-0.36.2-py3-none-any.whl",
308
- "yanked": false,
309
- "yanked_reason": null
310
- }
311
- ]
312
- }
313
- },
314
- "traitlets": {
315
- "releases": {
316
- "5.14.3": [
317
- {
318
- "comment_text": "",
319
- "digests": {
320
- "md5": "38dd65501ff11b109942b2c9569ba8e2",
321
- "sha256": "b74e89e397b1ed28cc831db7aea759ba6640cb3de13090ca145426688ff1ac4f"
322
- },
323
- "downloads": -1,
324
- "filename": "traitlets-5.14.3-py3-none-any.whl",
325
- "has_sig": false,
326
- "md5_digest": "38dd65501ff11b109942b2c9569ba8e2",
327
- "packagetype": "bdist_wheel",
328
- "python_version": "py3",
329
- "requires_python": ">=3.8",
330
- "size": 85359,
331
- "upload_time": "2025-09-17T09:36:46.628799Z",
332
- "upload_time_iso_8601": "2025-09-17T09:36:46.628799Z",
333
- "url": "./traitlets-5.14.3-py3-none-any.whl",
334
- "yanked": false,
335
- "yanked_reason": null
336
- }
337
- ]
338
- }
339
- },
340
- "typing-extensions": {
341
- "releases": {
342
- "4.15.0": [
343
- {
344
- "comment_text": "",
345
- "digests": {
346
- "md5": "1394f56d85d87540f7907680572797e1",
347
- "sha256": "f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548"
348
- },
349
- "downloads": -1,
350
- "filename": "typing_extensions-4.15.0-py3-none-any.whl",
351
- "has_sig": false,
352
- "md5_digest": "1394f56d85d87540f7907680572797e1",
353
- "packagetype": "bdist_wheel",
354
- "python_version": "py3",
355
- "requires_python": ">=3.9",
356
- "size": 44614,
357
- "upload_time": "2025-09-17T09:36:46.624541Z",
358
- "upload_time_iso_8601": "2025-09-17T09:36:46.624541Z",
359
- "url": "./typing_extensions-4.15.0-py3-none-any.whl",
360
- "yanked": false,
361
- "yanked_reason": null
362
- }
363
- ]
364
- }
365
- }
366
- }