Skip to content

Commit

Permalink
Merge pull request #897 from ioam/widget_fixes
Browse files Browse the repository at this point in the history
Small fixes for widgets
  • Loading branch information
jlstevens committed Oct 5, 2016
2 parents f5ed0c2 + a209ff3 commit 69def13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions holoviews/plotting/widgets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,11 @@ def _plot_figure(self, idx):


def update(self, key):
self.plot.update(key)
self.plot.push()
if not self.plot.dimensions:
self.plot.refresh()
else:
self.plot.update(key)
self.plot.push()
return 'Complete'


Expand Down
2 changes: 1 addition & 1 deletion holoviews/plotting/widgets/widgets.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ HoloViewsWidget.prototype.dynamic_update = function(current){
}
this.timed = (Date.now() - this.time) * 1.1;
if (msg.msg_type == "execute_result") {
if (msg.content.data['text/plain'] === "'Complete'") {
if (msg.content.data['text/plain'].includes('Complete')) {
this.wait = false;
if (this.queue.length > 0) {
this.time = Date.now();
Expand Down

0 comments on commit 69def13

Please sign in to comment.