adapt pyscript to new base class and clean Base

This commit is contained in:
Fabio Pliger
2022-04-18 12:06:30 -05:00
parent 955fb6fd37
commit 4d890602d9
3 changed files with 46 additions and 131 deletions

View File

@@ -204,7 +204,7 @@ export class PyRepl extends BaseEvalElement {
}
}
getSource(): string {
getSourceFromElement(): string {
const sourceStrings = [`output_manager.change("`+this.outputElement.id+`")`,
...this.editor.state.doc.toString().split("\n")];
return sourceStrings.join('\n')