Skip to content

Commit

Permalink
corrected import bug (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelle authored Mar 11, 2020
1 parent 307fd73 commit ce4fec8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/python/plotly/codegen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ def perform_codegen():
from distutils.version import LooseVersion
if LooseVersion(ipywidgets.__version__) >= LooseVersion('7.0.0'):
from ._figurewidget import FigureWidget
__all__.append("FigureWidget")
del LooseVersion
del ipywidgets
__all__.append("FigureWidget")
except ImportError:
pass
"""
Expand Down
3 changes: 2 additions & 1 deletion packages/python/plotly/plotly/graph_objs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100182,8 +100182,9 @@ def __init__(

if LooseVersion(ipywidgets.__version__) >= LooseVersion("7.0.0"):
from ._figurewidget import FigureWidget

__all__.append("FigureWidget")
del LooseVersion
del ipywidgets
__all__.append("FigureWidget")
except ImportError:
pass

0 comments on commit ce4fec8

Please sign in to comment.