Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e90fee commit d8f6ec9Copy full SHA for d8f6ec9
lib/matplotlib/backends/backend_webagg.py
@@ -73,18 +73,13 @@ def mainloop(self):
73
show = Show()
74
else:
75
def show():
76
- class RawHTML(object):
77
- def __init__(self, content):
78
- self._content = content
79
-
80
- def _repr_html_(self):
81
- return self._content
+ from IPython.display import display_html
82
83
result = []
84
import matplotlib._pylab_helpers as pylab_helpers
85
for manager in pylab_helpers.Gcf().get_all_fig_managers():
86
result.append(ipython_inline_display(manager.canvas.figure))
87
- return RawHTML('\n'.join(result))
+ return display_html('\n'.join(result), raw=True)
88
89
90
class ServerThread(threading.Thread):
0 commit comments