Skip to content

Commit

Permalink
Fixed widget mpld3 output
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 9, 2015
1 parent 6595747 commit 8858610
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holoviews/ipython/widgets.py
Expand Up @@ -317,6 +317,10 @@ def _process_element(self, element):
def _plot_figure(self, idx):
from .display_hooks import display_figure
fig = self.plot[idx]
if ViewMagic.options['backend'] == 'd3':
import mpld3
mpld3.plugins.connect(fig, mpld3.plugins.MousePosition(fontsize=14))
return mpld3.fig_to_dict(fig)
return display_figure(fig)


Expand Down

0 comments on commit 8858610

Please sign in to comment.