Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Basthon
Basthon Kernel
Commits
0ca64aea
Commit
0ca64aea
authored
Oct 17, 2022
by
Romain Casati
Browse files
Python 3: Allow custom Pyodide URL in kernel.
parent
2864caa6
Changes
2
Hide whitespace changes
Inline
Side-by-side
packages/kernel-python3-old/src/kernel.ts
View file @
0ca64aea
...
...
@@ -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.
...
...
packages/kernel-python3/src/kernel.ts
View file @
0ca64aea
...
...
@@ -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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment