@jupyterlite/pyodide-kernel-extension 0.3.0 → 0.4.0-alpha.0
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.
- package/lib/index.js +2 -1
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -25,6 +25,7 @@ const kernel = {
|
|
|
25
25
|
optional: [IServiceWorkerManager, IBroadcastChannelWrapper],
|
|
26
26
|
activate: (app, kernelspecs, serviceWorker, broadcastChannel) => {
|
|
27
27
|
const config = JSON.parse(PageConfig.getOption('litePluginSettings') || '{}')[PLUGIN_ID] || {};
|
|
28
|
+
const baseUrl = PageConfig.getBaseUrl();
|
|
28
29
|
const url = config.pyodideUrl || PYODIDE_CDN_URL;
|
|
29
30
|
const pyodideUrl = URLExt.parse(url).href;
|
|
30
31
|
const pipliteWheelUrl = config.pipliteWheelUrl
|
|
@@ -36,7 +37,7 @@ const kernel = {
|
|
|
36
37
|
const loadPyodideOptions = config.loadPyodideOptions || {};
|
|
37
38
|
for (const [key, value] of Object.entries(loadPyodideOptions)) {
|
|
38
39
|
if (key.endsWith('URL') && typeof value === 'string') {
|
|
39
|
-
loadPyodideOptions[key] =
|
|
40
|
+
loadPyodideOptions[key] = new URL(value, baseUrl).href;
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
kernelspecs.register({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlite/pyodide-kernel-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0-alpha.0",
|
|
4
4
|
"description": "JupyterLite - Pyodide Kernel Extension",
|
|
5
5
|
"homepage": "https://github.com/jupyterlite/pyodide-kernel",
|
|
6
6
|
"bugs": {
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@jupyterlab/coreutils": "^6.1.1",
|
|
51
|
-
"@jupyterlite/contents": "^0.
|
|
52
|
-
"@jupyterlite/kernel": "^0.
|
|
53
|
-
"@jupyterlite/pyodide-kernel": "^0.
|
|
54
|
-
"@jupyterlite/server": "^0.
|
|
51
|
+
"@jupyterlite/contents": "^0.4.0-alpha.0",
|
|
52
|
+
"@jupyterlite/kernel": "^0.4.0-alpha.0",
|
|
53
|
+
"@jupyterlite/pyodide-kernel": "^0.4.0-alpha.0",
|
|
54
|
+
"@jupyterlite/server": "^0.4.0-alpha.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@jupyterlab/builder": "~4.1.1",
|