Commit 0ca64aea authored by Romain Casati's avatar Romain Casati
Browse files

Python 3: Allow custom Pyodide URL in kernel.

parent 2864caa6
......@@ -21,7 +21,10 @@ export class KernelPython3Old extends KernelBase {
private __kernel__: any = null;
public pythonVersion: string = "";
constructor(options: any) { super(options); }
constructor(options: any) {
super(options);
this._pyodideUrl = options?.pyodideUrl ?? this._pyodideUrl;
}
/**
* Get the URL of Basthon modules dir.
......
......@@ -22,7 +22,10 @@ export class KernelPython3 extends KernelBase {
private __kernel__: any = null;
public pythonVersion: string = "";
constructor(options: any) { super(options); }
constructor(options: any) {
super(options);
this._pyodideUrl = options?.pyodideUrl ?? this._pyodideUrl;
}
/**
* Get the URL of Basthon modules dir.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment