Skip to content

Commit b28b39d

Browse files
committed
Activate new choreographer custom encoder
1 parent cfaac6f commit b28b39d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/py/kaleido/kaleido.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212

1313
import choreographer as choreo
1414
import logistro
15+
from choreographer import channels
1516
from choreographer.errors import ChromeNotFoundError
1617
from choreographer.utils import TmpDirectory
18+
from plotly.utils import PlotlyJSONEncoder
1719

1820
from ._fig_tools import _is_figurish, build_fig_spec
1921
from ._kaleido_tab import _KaleidoTab
@@ -28,6 +30,8 @@
2830

2931
_logger = logistro.getLogger(__name__)
3032

33+
channels.register_custom_encoder(PlotlyJSONEncoder)
34+
3135
# Show a warning if the installed Plotly version
3236
# is incompatible with this version of Kaleido
3337
warn_incompatible_plotly()

0 commit comments

Comments
 (0)