Skip to content

Commit

Permalink
Fix saving to non-HTML formats
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed May 6, 2020
1 parent 4bcba87 commit 5aaca22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ def save(self_or_cls, obj, basename, fmt='auto', key={}, info={},
resources = CDN
elif resources.lower() == 'inline':
resources = INLINE
if isinstance(basename, basestring) and fmt in MIME_TYPES:
basename = '.'.join([basename, fmt])
plot.layout.save(basename, embed=True, resources=resources)
return

Expand Down

0 comments on commit 5aaca22

Please sign in to comment.