vitessce 3.5.5__py3-none-any.whl → 3.5.7__py3-none-any.whl
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.
- vitessce/widget.py +10 -14
- {vitessce-3.5.5.dist-info → vitessce-3.5.7.dist-info}/METADATA +1 -1
- {vitessce-3.5.5.dist-info → vitessce-3.5.7.dist-info}/RECORD +5 -5
- {vitessce-3.5.5.dist-info → vitessce-3.5.7.dist-info}/WHEEL +0 -0
- {vitessce-3.5.5.dist-info → vitessce-3.5.7.dist-info}/licenses/LICENSE +0 -0
vitessce/widget.py
CHANGED
|
@@ -163,7 +163,7 @@ const React = await importWithMap("react", importMap);
|
|
|
163
163
|
const { createRoot } = await importWithMap("react-dom/client", importMap);
|
|
164
164
|
|
|
165
165
|
const e = React.createElement;
|
|
166
|
-
const WORKSPACES_URL_KEYWORD = 'https://workspaces-pt'
|
|
166
|
+
const WORKSPACES_URL_KEYWORD = 'https://workspaces-pt';
|
|
167
167
|
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches;
|
|
168
168
|
// The jupyter server may be running through a proxy,
|
|
169
169
|
// which means that the client needs to prepend the part of the URL before /proxy/8000 such as
|
|
@@ -175,7 +175,6 @@ function prependBaseUrl(config, proxy, hasHostName) {
|
|
|
175
175
|
}
|
|
176
176
|
const { origin, pathname } = new URL(window.location.href);
|
|
177
177
|
const isInWorkspaces = origin.startsWith(WORKSPACES_URL_KEYWORD);
|
|
178
|
-
|
|
179
178
|
const jupyterLabConfigEl = document.getElementById('jupyter-config-data');
|
|
180
179
|
|
|
181
180
|
let baseUrl;
|
|
@@ -183,7 +182,8 @@ function prependBaseUrl(config, proxy, hasHostName) {
|
|
|
183
182
|
const pathSegments = pathname.split('/');
|
|
184
183
|
const passthroughIndex = pathSegments.indexOf('passthrough');
|
|
185
184
|
if (passthroughIndex !== -1) {
|
|
186
|
-
baseUrl = pathSegments.slice(0, passthroughIndex +
|
|
185
|
+
baseUrl = pathSegments.slice(0, passthroughIndex + 3).join('/');
|
|
186
|
+
baseUrl += '/';
|
|
187
187
|
}
|
|
188
188
|
} else if (jupyterLabConfigEl) {
|
|
189
189
|
// This is jupyter lab
|
|
@@ -196,17 +196,13 @@ function prependBaseUrl(config, proxy, hasHostName) {
|
|
|
196
196
|
...config,
|
|
197
197
|
datasets: config.datasets.map(d => ({
|
|
198
198
|
...d,
|
|
199
|
-
files: d.files.map(f => {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
...f,
|
|
207
|
-
url: `${origin}${baseUrl}${f.url}`,
|
|
208
|
-
};
|
|
209
|
-
}),
|
|
199
|
+
files: d.files.map(f => ({
|
|
200
|
+
...f,
|
|
201
|
+
url: (!(f.url.startsWith('http://') || f.url.startsWith('https://'))
|
|
202
|
+
? `${origin}${baseUrl}${f.url}`
|
|
203
|
+
: f.url
|
|
204
|
+
),
|
|
205
|
+
})),
|
|
210
206
|
})),
|
|
211
207
|
};
|
|
212
208
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: vitessce
|
|
3
|
-
Version: 3.5.
|
|
3
|
+
Version: 3.5.7
|
|
4
4
|
Summary: Jupyter widget facilitating interactive visualization of spatial single-cell data with Vitessce
|
|
5
5
|
Project-URL: repository, https://github.com/vitessce/vitessce-python
|
|
6
6
|
Author-email: Mark Keller <mark_keller@hms.harvard.edu>
|
|
@@ -7,7 +7,7 @@ vitessce/file_def_utils.py,sha256=RM9Hj1uwPY-Y37JLOHiKA_acGY40p8C9WsDk8iVjDz8,66
|
|
|
7
7
|
vitessce/repr.py,sha256=qMmefmZ3E-3sRVxeI5q1DTZnfuwbXKiA85eyqk5MCT4,2287
|
|
8
8
|
vitessce/routes.py,sha256=U8T-L-3QCD_tAbPF8LsUlSMhPWNbyzbLNUnxP9Z9s9o,2140
|
|
9
9
|
vitessce/utils.py,sha256=obzjj65qsagu60_yuhGc-0jmHO-BW0Y-bDs0FgrBqLY,981
|
|
10
|
-
vitessce/widget.py,sha256=
|
|
10
|
+
vitessce/widget.py,sha256=1E1PGs656B7AGLdE6qAGlJ63zcH7aBFi1bOS0sMkYks,31623
|
|
11
11
|
vitessce/wrappers.py,sha256=kVqXFcpbuIb8MtZQSB4F7k32JM8bwCgMBrOkcAAhmvc,74676
|
|
12
12
|
vitessce/data_utils/__init__.py,sha256=3mWi1lMjoj4_dNbhMOvyE-HEJu0qpMzcmkhfz_5T6n8,361
|
|
13
13
|
vitessce/data_utils/anndata.py,sha256=iLa5-bRezHgBzL_XCHO7w0pc0RQ4urzZbDsqJbBYeCk,10668
|
|
@@ -17,7 +17,7 @@ vitessce/data_utils/ome.py,sha256=aK-iGNgjUmUMsWgdZhW78VrtMBKMW_jIQDYnsupq6BE,54
|
|
|
17
17
|
vitessce/widget_plugins/__init__.py,sha256=lto2GXnc7KwjIoT-jvzyRYLj0XTJG3uxoX45Hc9EcWA,82
|
|
18
18
|
vitessce/widget_plugins/demo_plugin.py,sha256=14S7nOxdlKSxIHw9DUcNCN83NE_U1EMPy2D4k0FDues,1797
|
|
19
19
|
vitessce/widget_plugins/spatial_query.py,sha256=CYxvmMT1Je_jguikPROQxlegkPgIIzemKGbZSJfZMyI,12314
|
|
20
|
-
vitessce-3.5.
|
|
21
|
-
vitessce-3.5.
|
|
22
|
-
vitessce-3.5.
|
|
23
|
-
vitessce-3.5.
|
|
20
|
+
vitessce-3.5.7.dist-info/METADATA,sha256=EbK58qfEkCzquClPc-XIIvNBcgUhQgarf-qEaX0THW4,9556
|
|
21
|
+
vitessce-3.5.7.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
22
|
+
vitessce-3.5.7.dist-info/licenses/LICENSE,sha256=sNNpI0PQ57AW8_XnTAjU5Yw8YBA_DRNkVHrHYpCIhRU,1067
|
|
23
|
+
vitessce-3.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|