Skip to content

Commit

Permalink
Ensure plot is rendered into last output in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 12, 2018
1 parent 98f09ef commit e09bc6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions holoviews/plotting/widgets/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,9 @@ function handle_add_output(event, handle) {
var id = output.metadata[EXEC_MIME_TYPE]["id"];
var toinsert = output_area.element.find("." + CLASS_NAME.split(' ')[0]);
if (id !== undefined) {
toinsert[0].children[0].innerHTML = output.data[HTML_MIME_TYPE];
toinsert[0].children[1].textContent = output.data[JS_MIME_TYPE];
var nchildren = toinsert.length;
toinsert[nchildren-1].children[0].innerHTML = output.data[HTML_MIME_TYPE];
toinsert[nchildren-1].children[1].textContent = output.data[JS_MIME_TYPE];
output_area._hv_plot_id = id;
if ((window.Bokeh !== undefined) && (id in Bokeh.index)) {
HoloViews.plot_index[id] = Bokeh.index[id];
Expand Down

0 comments on commit e09bc6b

Please sign in to comment.