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 4965500 commit f9da422Copy full SHA for f9da422
1 file changed
lib/matplotlib/backends/backend_webagg.py
@@ -245,6 +245,14 @@ def random_ports(port, n):
245
246
@classmethod
247
def start(cls):
248
+ try:
249
+ import asyncio
250
+ asyncio.get_running_loop()
251
+ except:
252
+ pass
253
+ else:
254
+ cls.started = True
255
+
256
if cls.started:
257
return
258
@@ -283,11 +291,16 @@ def catch_sigint():
283
291
284
292
285
293
def ipython_inline_display(figure):
294
286
295
import tornado.template
287
296
288
297
WebAggApplication.initialize()
289
- if not webagg_server_thread.is_alive():
290
- webagg_server_thread.start()
298
299
300
301
302
+ if not webagg_server_thread.is_alive():
303
+ webagg_server_thread.start()
304
305
fignum = figure.number
306
tpl = Path(core.FigureManagerWebAgg.get_static_file_path(),
0 commit comments