Skip to content

Commit 5189b15

Browse files
authored
Update pyscript_plugin.js
1 parent 147c587 commit 5189b15

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/pyscript_plugin.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ export default class LearnPython3Plugin {
55
}
66

77
afterPyScriptExec(opt) {
8-
console.log('Result >>>');
9-
console.log(opt.result);
8+
console.log(opt);
109
let
1110
tag = opt.pyScriptTag,
1211
outputId = tag.getAttribute('output'),
@@ -16,4 +15,9 @@ export default class LearnPython3Plugin {
1615
$i.removeClass('uk-icon-spin');
1716
$btn.removeAttr('disabled');
1817
}
18+
19+
onUserError(err) {
20+
console.log('Error >>>');
21+
console.error(err);
22+
}
1923
}

0 commit comments

Comments
 (0)