Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move if statement
Browse files Browse the repository at this point in the history
hoxbro committed Sep 24, 2023

Verified

This commit was signed with the committer’s verified signature.
sandhose Quentin Gliech
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
@@ -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"
@@ -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"""

0 comments on commit fc11633

Please sign in to comment.