diff --git a/plotly/basewidget.py b/plotly/basewidget.py index 2a6357086a7..6b119b308ca 100644 --- a/plotly/basewidget.py +++ b/plotly/basewidget.py @@ -15,7 +15,7 @@ from .serializers import custom_serializers from .version import __frontend_version__ -@widgets.register() +@widgets.register class BaseFigureWidget(BaseFigure, widgets.DOMWidget): """ Base class for FigureWidget. The FigureWidget class is code-generated as a diff --git a/plotly/grid_objs/grid_objs.py b/plotly/grid_objs/grid_objs.py index d373d39d2e2..dabf49582b6 100644 --- a/plotly/grid_objs/grid_objs.py +++ b/plotly/grid_objs/grid_objs.py @@ -5,7 +5,10 @@ """ from __future__ import absolute_import -from collections import MutableSequence +try: + from collections.abc import MutableSequence +except ImportError: + from collections import MutableSequence from requests.compat import json as _json