Skip to content

Commit

Permalink
Fixed bug saving to BytesIO on Renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 17, 2017
1 parent 4d18047 commit 02e72e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions holoviews/plotting/renderer.py
Expand Up @@ -11,7 +11,7 @@
import param
from ..core.io import Exporter
from ..core.options import Store, StoreOptions, SkipRendering
from ..core.util import find_file, unicode, unbound_dimensions
from ..core.util import find_file, unicode, unbound_dimensions, basestring
from .. import Layout, HoloMap, AdjointLayout
from .widgets import NdWidget, ScrubberWidget, SelectionWidget

Expand Down Expand Up @@ -466,7 +466,9 @@ def save(self_or_cls, obj, basename, fmt='auto', key={}, info={}, options=None,

if (fmt in list(self_or_cls.widgets.keys())+['auto']) and len(plot) > 1:
with StoreOptions.options(obj, options, **kwargs):
self_or_cls.export_widgets(plot, basename+'.html', fmt)
if isinstance(basename, basestring):
basename = basename+'.html'
self_or_cls.export_widgets(plot, basename, fmt)
return

with StoreOptions.options(obj, options, **kwargs):
Expand Down

0 comments on commit 02e72e0

Please sign in to comment.