Skip to content

Commit

Permalink
Accept Resources instance in save (#4011)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Oct 1, 2019
1 parent ae69535 commit 6450b14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions holoviews/plotting/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,8 +520,10 @@ def save(self_or_cls, obj, basename, fmt='auto', key={}, info={},
plot, fmt = self_or_cls._validate(obj, fmt)

if isinstance(plot, Viewable):
from bokeh.resources import CDN, INLINE
if resources.lower() == 'cdn':
from bokeh.resources import CDN, INLINE, Resources
if isinstance(resources, Resources):
pass
elif resources.lower() == 'cdn':
resources = CDN
elif resources.lower() == 'inline':
resources = INLINE
Expand Down

0 comments on commit 6450b14

Please sign in to comment.