Skip to content

Commit 624c30c

Browse files
committed
Move plotly.io import to local method to resolve python 3.6 circular import
1 parent 586be5c commit 624c30c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

repos/kaleido/py/kaleido/scopes/plotly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import absolute_import
22
from kaleido.scopes.base import BaseScope, which
3-
import plotly.io as pio
43
import base64
54
import os
65
from pathlib import Path
@@ -73,6 +72,7 @@ def scope_name(self):
7372
return "plotly"
7473

7574
def _json_dumps(self, val):
75+
import plotly.io as pio
7676
return pio.to_json(val, validate=False, remove_uids=False)
7777

7878
def transform(self, figure, format=None, width=None, height=None, scale=None):

0 commit comments

Comments
 (0)