Skip to content

Commit a2e78c4

Browse files
emilyklayjayt
authored andcommitted
pass plotlyjs arg to PageGenerator constructor
1 parent 8b5eef3 commit a2e78c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/py/kaleido/kaleido.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
106106
self._height = kwargs.pop("height", None)
107107
self._width = kwargs.pop("width", None)
108108
self._stepper = kwargs.pop("stepper", False)
109+
self._plotlyjs = kwargs.pop("plotlyjs", None)
109110
self._mathjax = kwargs.pop("mathjax", None)
110111
if not kwargs.get("headless", True) and (self._height or self._width):
111112
warnings.warn(
@@ -136,7 +137,7 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
136137
index = self.tmp_dir.path / "index.html"
137138
self._index = index.as_uri()
138139
if not page:
139-
page = PageGenerator(mathjax=self._mathjax)
140+
page = PageGenerator(plotly=self._plotlyjs, mathjax=self._mathjax)
140141
page.generate_index(index)
141142

142143
async def _conform_tabs(self, tabs=None) -> None:

0 commit comments

Comments
 (0)