Skip to content

Commit 0e2f344

Browse files
committed
Remove PlotlyDisplay class. Was replaced by IPython.display.IFrame
1 parent 7e23ae5 commit 0e2f344

File tree

1 file changed

+0
-21
lines changed
  • packages/python/chart-studio/chart_studio

1 file changed

+0
-21
lines changed

packages/python/chart-studio/chart_studio/tools.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -384,24 +384,3 @@ def embed(file_owner_or_url, file_id=None, width="100%", height=525):
384384
"plot. If you just want the *embed code*,\ntry using "
385385
"`get_embed()` instead."
386386
'\nQuestions? {}'.format(feedback_contact))
387-
388-
389-
### graph_objs related tools ###
390-
if ipython_core_display:
391-
class PlotlyDisplay(ipython_core_display.HTML):
392-
"""An IPython display object for use with plotly urls
393-
394-
PlotlyDisplay objects should be instantiated with a url for a plot.
395-
IPython will *choose* the proper display representation from any
396-
Python object, and using provided methods if they exist. By defining
397-
the following, if an HTML display is unusable, the PlotlyDisplay
398-
object can provide alternate representations.
399-
400-
"""
401-
def __init__(self, url, width, height):
402-
self.resource = url
403-
self.embed_code = get_embed(url, width=width, height=height)
404-
super(PlotlyDisplay, self).__init__(data=self.embed_code)
405-
406-
def _repr_html_(self):
407-
return self.embed_code

0 commit comments

Comments
 (0)