We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ed8ee6 commit 6563d4fCopy full SHA for 6563d4f
1 file changed
src/py/kaleido/_page_generator.py
@@ -64,7 +64,7 @@ class PageGenerator:
64
"""
65
"""The footer is the HTML that always goes on the bottom. Rarely needs changing."""
66
67
- def __init__(
+ def __init__( # noqa: C901
68
self,
69
*,
70
plotly: None | Path | str | tuple[Path | str, str] = None,
@@ -88,9 +88,9 @@ def __init__(
88
89
self._scripts = []
90
if mathjax is not False:
91
- if not mathjax or mathjax is True:
+ if mathjax is None or mathjax is True:
92
mathjax = DEFAULT_MATHJAX
93
- else:
+ elif mathjax:
94
_ensure_path(mathjax)
95
self._scripts.append(mathjax)
96
if force_cdn:
0 commit comments