Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Labels
Milestone
Description
Thanks for developping!
Currently, the URL is shown only whenrcParams['webagg.open_in_browser'] is False.
# from matplotlib/lib/matplotlib/backends/backend_webagg.py@staticmethoddefshow():WebAggApplication.initialize()url="http://{address}:{port}{prefix}".format(address=WebAggApplication.address,port=WebAggApplication.port,prefix=WebAggApplication.url_prefix)ifrcParams['webagg.open_in_browser']:importwebbrowserwebbrowser.open(url)else:print("To view figure, visit {0}".format(url))WebAggApplication.start()
- Is it possible to print the URL when
webbrowser.openfailed? - Or, simply set
webagg.open_in_browserto False when$DISPLAYis empty on Linux?
Matplotlib version
- Operating system: Debian 10
- Matplotlib version: 3.1.1
- Matplotlib backend (
print(matplotlib.get_backend())): webagg - Python version: 3.7.4