Skip to content

Commit dbe6513

Browse files
committed
fix plot update bug
1 parent 61999e3 commit dbe6513

File tree

1 file changed

+3
-2
lines changed
  • dnotebook/src/public/javascripts

1 file changed

+3
-2
lines changed

dnotebook/src/public/javascripts/utils.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function print_val(val) {
8282
}
8383

8484
function this_div() {
85-
let id = `cell-${window.current_cell.split("-")[1]}`
85+
// let id = `out-${window.current_cell.split("-")[1]}`
86+
let id = `#out_${window.current_cell}`
8687
let rand_div_name = `random_div_#${id}`
8788
html = `
8889
<div class="col-md-1"></div>
@@ -91,7 +92,7 @@ function this_div() {
9192
<div class="col-md-2"></div>
9293
`
9394

94-
$(`#${id}`).append(html)
95+
$(`${id}`).append(html)
9596
return rand_div_name
9697
}
9798

0 commit comments

Comments
 (0)