Skip to content

Commit

Permalink
Move if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Sep 24, 2023
1 parent a66b8f0 commit fc11633
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions holoviews/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ def __call__(self, *args, **params):

import panel as pn

if params.get("enable_mathjax", False) and selected_backend == "bokeh":
pn.extension("mathjax")

if pn.config.comms == "default":
if "google.colab" in sys.modules:
pn.config.comms = "colab"
Expand All @@ -725,10 +728,6 @@ def __call__(self, *args, **params):
self._ignore_bokeh_warnings()
return

if params.get("enable_mathjax", False) and selected_backend == "bokeh":
pn.extension("mathjax")


@classmethod
def register_backend_callback(cls, backend, callback):
"""Registers a hook which is run when a backend is loaded"""
Expand Down

0 comments on commit fc11633

Please sign in to comment.