René's URL Explorer Experiment


Title: Make matplotlib fail more gracefully in headless environments · Issue #6739 · matplotlib/matplotlib · GitHub

Open Graph Title: Make matplotlib fail more gracefully in headless environments · Issue #6739 · matplotlib/matplotlib

X Title: Make matplotlib fail more gracefully in headless environments · Issue #6739 · matplotlib/matplotlib

Description: This is reproducible on any headless environment using matplotlib 1.5.1. On my system, the following script: from matplotlib import pyplot as plt plt.plot([1, 2], [1, 2]) Will produce the following traceback: ----------------------------...

Open Graph Description: This is reproducible on any headless environment using matplotlib 1.5.1. On my system, the following script: from matplotlib import pyplot as plt plt.plot([1, 2], [1, 2]) Will produce the following...

X Description: This is reproducible on any headless environment using matplotlib 1.5.1. On my system, the following script: from matplotlib import pyplot as plt plt.plot([1, 2], [1, 2]) Will produce the following...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6739

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make matplotlib fail more gracefully in headless environments","articleBody":"This is reproducible on any headless environment using matplotlib 1.5.1. On my system, the following script:\n\n``` python\nfrom matplotlib import pyplot as plt\nplt.plot([1, 2], [1, 2])\n```\n\nWill produce the following traceback:\n\n```\n---------------------------------------------------------------------------\nTclError                                  Traceback (most recent call last)\n\u003cipython-input-2-8dd816f9ddc7\u003e in \u003cmodule\u003e()\n----\u003e 1 plt.plot([1, 2], [1, 2])\n\n/home/goldbaum/.virtualenvs/yt-dev/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in plot(*args, **kwargs)\n   3145 @_autogen_docstring(Axes.plot)\n   3146 def plot(*args, **kwargs):\n-\u003e 3147     ax = gca()\n   3148     # allow callers to override the hold state by passing hold=True|False\n   3149     washold = ax.ishold()\n\n/home/goldbaum/.virtualenvs/yt-dev/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in gca(**kwargs)\n    926     matplotlib.figure.Figure.gca : The figure's gca method.\n    927     \"\"\"\n--\u003e 928     return gcf().gca(**kwargs)\n    929\n    930 # More ways of creating axes:\n\n/home/goldbaum/.virtualenvs/yt-dev/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in gcf()\n    576         return figManager.canvas.figure\n    577     else:\n--\u003e 578         return figure()\n    579\n    580\n\n/home/goldbaum/.virtualenvs/yt-dev/local/lib/python2.7/site-packages/matplotlib/pyplot.pyc in figure(num, figsize, dpi, facecolor, edgecolor, frameon, FigureClass, **kwargs)\n    525                                         frameon=frameon,\n    526                                         FigureClass=FigureClass,\n--\u003e 527                                         **kwargs)\n    528\n    529         if figLabel:\n\n/home/goldbaum/.virtualenvs/yt-dev/local/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.pyc in new_figure_manager(num, *args, **kwargs)\n     82     FigureClass = kwargs.pop('FigureClass', Figure)\n     83     figure = FigureClass(*args, **kwargs)\n---\u003e 84     return new_figure_manager_given_figure(num, figure)\n     85\n     86\n\n/home/goldbaum/.virtualenvs/yt-dev/local/lib/python2.7/site-packages/matplotlib/backends/backend_tkagg.pyc in new_figure_manager_given_figure(num, figure)\n     90     \"\"\"\n     91     _focus = windowing.FocusManager()\n---\u003e 92     window = Tk.Tk()\n     93     window.withdraw()\n     94\n\n/usr/lib/python2.7/lib-tk/Tkinter.pyc in __init__(self, screenName, baseName, className, useTk, sync, use)\n   1765                 baseName = baseName + ext\n   1766         interactive = 0\n-\u003e 1767         self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)\n   1768         if useTk:\n   1769             self._loadtk()\n\nTclError: no display name and no $DISPLAY environment variable\n```\n\nI think it would be much nicer if backends somehow detected these sorts of errors, fell back to the Agg backend (probably with a warning) and then goes ahead and makes the plot.\n","author":{"url":"https://github.com/ngoldbaum","@type":"Person","name":"ngoldbaum"},"datePublished":"2016-07-14T18:34:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/6739/matplotlib/issues/6739"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:070d183f-f598-0b31-9413-cead911628ed
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8992:21C9D6:4D5315E:6BB9885:6A54F59F
html-safe-noncea412f77673f907388a5573834b8566adee39da8895ed585ce9ff9415c2b41fbf
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTkyOjIxQzlENjo0RDUzMTVFOjZCQjk4ODU6NkE1NEY1OUYiLCJ2aXNpdG9yX2lkIjoiMjk1ODAyNDY1NTIwNDg0MDg2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac780a8933db116f44112f46985986250b71c82a7ee25328f32a52afcdc3e5144e
hovercard-subject-tagissue:165628616
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/6739/issue_layout
twitter:imagehttps://opengraph.githubassets.com/08cf6f4cb455e602ba6be845753f28267bde2810dee4e94dfe929a93eefb3f56/matplotlib/matplotlib/issues/6739
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/08cf6f4cb455e602ba6be845753f28267bde2810dee4e94dfe929a93eefb3f56/matplotlib/matplotlib/issues/6739
og:image:altThis is reproducible on any headless environment using matplotlib 1.5.1. On my system, the following script: from matplotlib import pyplot as plt plt.plot([1, 2], [1, 2]) Will produce the following...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamengoldbaum
hostnamegithub.com
expected-hostnamegithub.com
Noneeae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd26d3896747463b6bd56edd5e290edb595c3cbc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/6739#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F6739
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F6739
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/6739
Reloadhttps://github.com/matplotlib/matplotlib/issues/6739
Reloadhttps://github.com/matplotlib/matplotlib/issues/6739
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/6739
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/6739
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 409 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Make matplotlib fail more gracefully in headless environmentshttps://github.com/matplotlib/matplotlib/issues/6739#top
v3.0.0https://github.com/matplotlib/matplotlib/milestone/23
https://github.com/ngoldbaum
ngoldbaumhttps://github.com/ngoldbaum
on Jul 14, 2016https://github.com/matplotlib/matplotlib/issues/6739#issue-165628616
v3.0.0https://github.com/matplotlib/matplotlib/milestone/23
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.