We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190ae39 commit 9d0837aCopy full SHA for 9d0837a
pyscriptjs/src/components/pyscript.ts
@@ -140,11 +140,8 @@ export class PyScript extends BaseEvalElement {
140
// to create a new output div to output to
141
142
// Let's check if we have an id first and create one if not
143
- if (!this.id){
144
- this.id = `pyid-${Date.now()}`
145
- }
146
this.outputElement = document.createElement('div');
147
- const exec_id = this.getAttribute("exec-id");
+ const exec_id = this.getAttribute("exec-id");
148
this.outputElement.id = this.id + (exec_id ? "-"+exec_id : "");
149
150
// add the output div id if there's not output pre-defined
0 commit comments