Skip to content

Commit 8aed994

Browse files
committed
fix error in exec cell
1 parent 8dc998a commit 8aed994

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • notebookjs/src/public/javascripts

notebookjs/src/public/javascripts/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,12 @@ $("#div-1")
4343

4444

4545
function exec_cell(c_id) {
46-
$(`#out_${id}`).html("")
4746
let id = c_id.split("_")[1]
4847
let count = c_id.split("-")[1]
4948
window.current_cell = id;
5049

50+
$(`#out_${id}`).html("")
51+
5152
try {
5253
let output = ("global", eval)(vars_in_scope[id].getValue())
5354
if (Array.isArray(output)) {

0 commit comments

Comments
 (0)