diff --git a/dev/index.html b/dev/index.html
index f69a3aa..1d3ac15 100644
--- a/dev/index.html
+++ b/dev/index.html
@@ -36,6 +36,15 @@
Python
+ Python example 2
+ Python code example here
+
+
+
+
Code Zones !
javascript code zone
diff --git a/src/languages/python/python.js b/src/languages/python/python.js
index 8537bc4..1a87611 100644
--- a/src/languages/python/python.js
+++ b/src/languages/python/python.js
@@ -47,7 +47,7 @@ ${webcomponent.value}`)
}
setPrintFn () {
- pyodide.runPython(`
+ this.subInterpreter.run(`
def print(*args):
from js import WCCode
zone = WCCode.zones.get(${this.zone.zoneId})
diff --git a/src/wc-code.js b/src/wc-code.js
index 0e15915..5050a62 100644
--- a/src/wc-code.js
+++ b/src/wc-code.js
@@ -95,7 +95,7 @@ WCCode.WCCode = class extends WCCodeMirror {
async initLanguage () {
this.loadingBar.setText('initializing language...')
- if (!this.languageOptions.initilalized) {
+ if (!this.languageOptions.initialized) {
// if the language has an init function,
// init it !
if (this.languageOptions.init) {
@@ -114,7 +114,7 @@ WCCode.WCCode = class extends WCCodeMirror {
async initInterpreter () {
// create the interpreter
if (this.parentZoneElement) {
- if (!this.parentZoneElement.initilalized) this.parentZoneElement.init()
+ if (!this.parentZoneElement.initialized) this.parentZoneElement.init()
} else {
const interpreter = new this.languageOptions.Interpreter(this.zone)
this.zone.setInterpreter(interpreter)