Skip to content

Commit 6563d4f

Browse files
committed
Clear up mathjax logic.
1 parent 9ed8ee6 commit 6563d4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/py/kaleido/_page_generator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class PageGenerator:
6464
"""
6565
"""The footer is the HTML that always goes on the bottom. Rarely needs changing."""
6666

67-
def __init__(
67+
def __init__( # noqa: C901
6868
self,
6969
*,
7070
plotly: None | Path | str | tuple[Path | str, str] = None,
@@ -88,9 +88,9 @@ def __init__(
8888
"""
8989
self._scripts = []
9090
if mathjax is not False:
91-
if not mathjax or mathjax is True:
91+
if mathjax is None or mathjax is True:
9292
mathjax = DEFAULT_MATHJAX
93-
else:
93+
elif mathjax:
9494
_ensure_path(mathjax)
9595
self._scripts.append(mathjax)
9696
if force_cdn:

0 commit comments

Comments
 (0)