Skip to content

Commit

Permalink
Do not switch backend when loading backend via renderer (#4013)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Oct 4, 2019
1 parent 371ff61 commit 9768a57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions holoviews/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,11 @@ def renderer(name):
"""
try:
if name not in Store.renderers:
if Store.current_backend:
prev_backend = Store.current_backend
extension(name)
if prev_backend:
Store.set_current_backend(prev_backend)
return Store.renderers[name]
except ImportError:
msg = ('Could not find a {name!r} renderer, available renderers are: {available}.')
Expand Down

0 comments on commit 9768a57

Please sign in to comment.