Skip to content
Permalink
Browse files

Fixed bug saving to BytesIO on Renderer (#1560)

  • Loading branch information...
philippjfr authored and jlstevens committed Jun 17, 2017
1 parent 4d18047 commit cb9759484db10827cf7a94c1e67d1e4472c40656
Showing with 4 additions and 2 deletions.
  1. +4 −2 holoviews/plotting/renderer.py
@@ -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

@@ -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):

0 comments on commit cb97594

Please sign in to comment.
You can’t perform that action at this time.