@basthon/kernel-python3 0.41.6 → 0.41.9
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/dist/basthon.data +0 -0
- package/lib/dist/basthon.js +2 -2
- package/lib/dist/modules/IPython-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/extern/pytutor-main.min.js +6 -6
- package/lib/dist/modules/extern/pytutor-main.min.js.map +1 -1
- package/lib/dist/modules/graphviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/ipythonblocks-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/ivp-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/lolviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/p5-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/proj4py-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/rcviz-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/requests-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/turtle-0.0.1-py3-none-any.whl +0 -0
- package/lib/dist/modules/tutor-0.0.1-py3-none-any.whl +0 -0
- package/lib/kernel.js +3 -2
- package/package.json +6 -4
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/kernel.js
CHANGED
|
@@ -48,8 +48,9 @@ export class KernelPython3 extends KernelBase {
|
|
|
48
48
|
/* testing if Pyodide is installed locally */
|
|
49
49
|
try {
|
|
50
50
|
const url = this.basthonRoot() + "/pyodide/pyodide.js";
|
|
51
|
-
await
|
|
52
|
-
|
|
51
|
+
const response = await fetch(url, { method: "HEAD" });
|
|
52
|
+
if (response.ok)
|
|
53
|
+
this._pyodideUrl = url;
|
|
53
54
|
}
|
|
54
55
|
catch (e) { }
|
|
55
56
|
// forcing Pyodide to look at the right location for other files
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/kernel-python3",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.9",
|
|
4
4
|
"description": "Basthon - Python3 Kernel",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -22,10 +22,12 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "make build",
|
|
25
|
-
"clean": "make clean"
|
|
25
|
+
"clean": "make clean",
|
|
26
|
+
"postinstall": "mkdir -p lib/dist/ && wget -qO- 'https://github.com/pyodide/pyodide/releases/download/0.16.1/pyodide-build-0.16.1.tar.bz2' | tar xjvf - -C lib/dist/",
|
|
27
|
+
"prepublishOnly": "rm -rf lib/dist/pyodide/"
|
|
26
28
|
},
|
|
27
29
|
"dependencies": {
|
|
28
|
-
"@basthon/kernel-base": "^0.41.
|
|
30
|
+
"@basthon/kernel-base": "^0.41.9"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"gulp": "^4.0.2",
|
|
@@ -40,5 +42,5 @@
|
|
|
40
42
|
"publishConfig": {
|
|
41
43
|
"access": "public"
|
|
42
44
|
},
|
|
43
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "7063ce35c8205ef6894405e49fbf1b0eb05d0630"
|
|
44
46
|
}
|