Skip to content

Commit

Permalink
Do not override selected HoloViews renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 19, 2020
1 parent f589266 commit e6b7735
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions panel/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,14 @@ def __call__(self, *args, **params):
if 'holoviews' in sys.modules:
import holoviews as hv
import holoviews.plotting.bokeh # noqa
if not getattr(hv.extension, '_loaded', False):
if hasattr(hv.Store, 'set_current_backend'):
hv.Store.set_current_backend('bokeh')
else:
hv.Store.current_backend = 'bokeh'
if hv.Store.current_backend in hv.Store.renderers:
backend = hv.Store.current_backend
else:
backend = 'bokeh'
if hasattr(hv.Store, 'set_current_backend'):
hv.Store.set_current_backend(backend)
else:
hv.Store.current_backend = backend

try:
ip = params.pop('ip', None) or get_ipython() # noqa (get_ipython)
Expand Down

0 comments on commit e6b7735

Please sign in to comment.