Skip to content

Commit

Permalink
Disabled caching for live and dynamic modes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Dec 20, 2015
1 parent cd82b82 commit c0f9f2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
12 changes: 4 additions & 8 deletions holoviews/plotting/bokeh/bokehwidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,10 @@ var BokehMethods = {
this.update(current);
}
}
if(!(current in this.frames)) {
var kernel = IPython.notebook.kernel;
callbacks = {iopub: {output: $.proxy(callback, this, this.initialized)}};
var cmd = "holoviews.plotting.widgets.NdWidget.widgets['" + this.id + "'].update(" + current + ")";
kernel.execute("import holoviews;" + cmd, callbacks, {silent : false});
} else {
this.update(current);
}
var kernel = IPython.notebook.kernel;
callbacks = {iopub: {output: $.proxy(callback, this, this.initialized)}};
var cmd = "holoviews.plotting.widgets.NdWidget.widgets['" + this.id + "'].update(" + current + ")";
kernel.execute("import holoviews;" + cmd, callbacks, {silent : false});
}
}

Expand Down
12 changes: 4 additions & 8 deletions holoviews/plotting/mpl/mplwidgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,10 @@ var MPLMethods = {
this.update(current);
}
}
if((this.mode == 'nbagg') || !(current in this.cache)) {
var kernel = IPython.notebook.kernel;
callbacks = {iopub: {output: $.proxy(callback, this)}};
var cmd = "holoviews.plotting.widgets.NdWidget.widgets['" + this.id + "'].update(" + current + ")";
kernel.execute("import holoviews;" + cmd, callbacks, {silent : false});
} else {
this.update(current);
}
var kernel = IPython.notebook.kernel;
callbacks = {iopub: {output: $.proxy(callback, this)}};
var cmd = "holoviews.plotting.widgets.NdWidget.widgets['" + this.id + "'].update(" + current + ")";
kernel.execute("import holoviews;" + cmd, callbacks, {silent : false});
}
}

Expand Down

0 comments on commit c0f9f2a

Please sign in to comment.