10000 Tried to solve Issue #15650 · matplotlib/matplotlib@63a9b5b · GitHub
[go: up one dir, main page]

Skip to content

Commit 63a9b5b

Browse files
committed
Tried to solve Issue #15650
1 parent 2d23567 commit 63a9b5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/backends/backend_webagg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ def show():
317317

318318
if rcParams['webagg.open_in_browser']:
319319
import webbrowser
320-
webbrowser.open(url)
320+
if (webbrowser.open(url)==False):
321+
print("To view figure, visit {0}".format(url))
321322
else:
322323
print("To view figure, visit {0}".format(url))
323324

0 commit comments

Comments
 (0)
0