clean pylist.py and add a very hacky sync between list items and it's rendered versions

This commit is contained in:
Fabio Pliger
2022-04-20 20:03:23 -05:00
parent 7c71ba6fde
commit 71873b6b50
3 changed files with 31 additions and 13 deletions

View File

@@ -199,6 +199,10 @@ export class PyRepl extends BaseEvalElement {
}
postEvaluate(): void {
this.outputElement.hidden = false;
this.outputElement.style.display = 'block';
if (this.hasAttribute('auto-generate')) {
let nextExecId = parseInt(this.getAttribute('exec-id')) + 1;
const newPyRepl = document.createElement("py-repl");