Skip to content

Commit

Permalink
Update pyscript_plugin.js
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelliao authored Apr 26, 2023
1 parent 7c317c3 commit f983b17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/pyscript_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@ export default class LearnPython3Plugin {
console.log('[plugin] pyscript startup.');
window.__pyscript_ready__ = true;
}

afterPyScriptExec(opt) {
let
tag = opt.pyScriptTag,
outputId = tag.getAttribute('output'),
$btn = $('button[outputId=' + outputId + ']);
$button.removeAttr('disabled');
}
}

0 comments on commit f983b17

Please sign in to comment.