René's URL Explorer Experiment


Title: [Bug]: matplotlib figures inhibit `input` longer than 100 chars in IPython · Issue #25756 · matplotlib/matplotlib · GitHub

Open Graph Title: [Bug]: matplotlib figures inhibit `input` longer than 100 chars in IPython · Issue #25756 · matplotlib/matplotlib

X Title: [Bug]: matplotlib figures inhibit `input` longer than 100 chars in IPython · Issue #25756 · matplotlib/matplotlib

Description: Bug summary After matplotlib activates a plot in IPython, input behavior is changed. In particular, input longer than 100 characters is no longer directly accepted. Since IPython uses input in its REPL loop when --simple-prompt is set, t...

Open Graph Description: Bug summary After matplotlib activates a plot in IPython, input behavior is changed. In particular, input longer than 100 characters is no longer directly accepted. Since IPython uses input in its ...

X Description: Bug summary After matplotlib activates a plot in IPython, input behavior is changed. In particular, input longer than 100 characters is no longer directly accepted. Since IPython uses input in its ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: matplotlib figures inhibit `input` longer than 100 chars in IPython","articleBody":"### Bug summary\r\n\r\nAfter matplotlib activates a plot in IPython, `input` behavior is changed.  In particular, input longer than 100 characters is no longer directly accepted.  Since IPython uses `input` in its REPL loop when `--simple-prompt` is set, this defeats various modes (such as Emacs) which use this.\r\n\r\n### Code for reproduction\r\n\r\n```python\r\n% python3 -m IPython --simple-prompt\r\nPython 3.11.3 (main, Apr  7 2023, 19:29:16) [Clang 14.0.0 (clang-1400.0.29.202)]\r\nType 'copyright', 'credits' or 'license' for more information\r\nIPython 8.12.0 -- An enhanced Interactive Python. Type '?' for help.\r\n\r\nIn [1]: input('Test1: '); print(\"success!\")\r\nTest1: avaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravar=3\r\nsuccess!\r\n\r\nIn [2]: import matplotlib.pyplot as plt; plt.plot([1])\r\nInstalled osx event loop hook.\r\nOut[2]: [\u003cmatplotlib.lines.Line2D at 0x10a704a10>]\r\n\r\nIn [3]: input('Test2: '); print(\"success!\")\r\nTest2: avaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravar=3\r\n# Return does not send the input\r\n```\r\n\r\n\r\n### Actual outcome\r\n\r\nTo send the input, an additional newline is required, which is then interpreted as an additional (blank) command.  Commands shorter than 100 characters are still directly accepted.\r\n\r\n### Expected outcome\r\n\r\nPython's native `input` should work the same in IPython before and after activating a matplotlib figure, for arbitrary command lengths (up to the terminals line length limit). \r\n\r\n### Additional information\r\n\r\nIssue posted with IPython as well: ipython/ipython#14030. I have tested disabling `enable_gui`, but this is not the culprit.  To see the bug, you must actually create a figure (but do not need to show it).  This does not occur in regular `python` sessions, only IPython (and possibly only on MacOS?).\r\n\r\n### Operating system\r\n\r\nMacOS 12.6\r\n\r\n### Matplotlib Version\r\n\r\n3.7.1 (same behavior on various versions back to 3.4)\r\n\r\n### Matplotlib Backend\r\n\r\nMacOSX (though same behavior with other backends, e.g. qt6)\r\n\r\n### Python version\r\n\r\n3.11.3 (same behavior back to 3.9)\r\n\r\n### Jupyter version\r\n\r\nn/a\r\n\r\n### Installation\r\n\r\npip","author":{"url":"https://github.com/jdtsmith","@type":"Person","name":"jdtsmith"},"datePublished":"2023-04-23T16:54:12Z","url":"https://github.com/matplotlib/matplotlib/issues/25756"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:055700b2-2747-9f37-3a87-9ad16ef4f435
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAE04:2429C1:62C215:7BB747:6B024A9D
html-safe-nonce3fe0852f4242d4086d6108b443e29b9965061a7e8aa2efba6a87149941c342b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA0OjI0MjlDMTo2MkMyMTU6N0JCNzQ3OjZCMDI0QTlEIiwidmlzaXRvcl9pZCI6Ijg4NTU2OTA4OTIxNDU3NDA0NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca8facecb4d55e154e046ffd30542132dc83290edd614272b887dc66ccb45675f
hovercard-subject-tagissue:1680092658
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/25756/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d4e9cf9c71612e4e4fb4b62248924ec4311e64e307130e7a609eec0914674e62/matplotlib/matplotlib/issues/25756
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d4e9cf9c71612e4e4fb4b62248924ec4311e64e307130e7a609eec0914674e62/matplotlib/matplotlib/issues/25756
og:image:altBug summary After matplotlib activates a plot in IPython, input behavior is changed. In particular, input longer than 100 characters is no longer directly accepted. Since IPython uses input in its ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejdtsmith
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/25756#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F25756
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F25756
Sign uphttps://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/25756
Reloadhttps://github.com/matplotlib/matplotlib/issues/25756
Reloadhttps://github.com/matplotlib/matplotlib/issues/25756
matplotlibhttps://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Codehttps://github.com/matplotlib/matplotlib
Issues1k (1k)https://github.com/matplotlib/matplotlib/issues
Pull requests437 (437)https://github.com/matplotlib/matplotlib/pulls
Actionshttps://github.com/matplotlib/matplotlib/actions
Projectshttps://github.com/matplotlib/matplotlib/projects
Wikihttps://github.com/matplotlib/matplotlib/wiki
Security and qualityhttps://github.com/matplotlib/matplotlib/security
Insightshttps://github.com/matplotlib/matplotlib/insights
https://github.com/matplotlib/matplotlib
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/25756
New issuehttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/25756
[Bug]: matplotlib figures inhibit input longer than 100 chars in IPythonhttps://github.com/matplotlib/matplotlib/issues/25756#top
status: upstream fix requiredhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20upstream%20fix%20required%22
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 23, 2023https://github.com/matplotlib/matplotlib/issues/25756#issue-1680092658
ipython/ipython#14030https://github.com/ipython/ipython/issues/14030
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520154030
matplotlib/lib/matplotlib/pyplot.pyhttps://github.com/matplotlib/matplotlib/blob/d77801ea94b06b990fc2b535a42522b45143e630/lib/matplotlib/pyplot.py#L173-L207
d77801ehttps://github.com/matplotlib/matplotlib/commit/d77801ea94b06b990fc2b535a42522b45143e630
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520329794
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520418254
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520425251
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520520125
https://github.com/python/cpython/blob/385d8d2b6438c7825006df6106dab41a95332a6a/Parser/myreadline.c#L47-L58https://github.com/python/cpython/blob/385d8d2b6438c7825006df6106dab41a95332a6a/Parser/myreadline.c#L47-L58
https://github.com/python/cpython/blob/385d8d2b6438c7825006df6106dab41a95332a6a/Parser/myreadline.c#L304-L322https://github.com/python/cpython/blob/385d8d2b6438c7825006df6106dab41a95332a6a/Parser/myreadline.c#L304-L322
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520746913
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520830248
matplotlib/src/_macosx.mhttps://github.com/matplotlib/matplotlib/blob/52a2a7ca6a52bd4a1544d391e75534a7c610a91f/src/_macosx.m#L89-L179
52a2a7chttps://github.com/matplotlib/matplotlib/commit/52a2a7ca6a52bd4a1544d391e75534a7c610a91f
matplotlib/src/_macosx.mhttps://github.com/matplotlib/matplotlib/blob/52a2a7ca6a52bd4a1544d391e75534a7c610a91f/src/_macosx.m#L288
52a2a7chttps://github.com/matplotlib/matplotlib/commit/52a2a7ca6a52bd4a1544d391e75534a7c610a91f
https://github.com/python/cpython/blob/518050ced18422fd00fadc1a81b0d942b98e2e5b/Modules/_tkinter.c#L689https://github.com/python/cpython/blob/518050ced18422fd00fadc1a81b0d942b98e2e5b/Modules/_tkinter.c#L689
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520876889
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520881501
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520882349
https://matplotlib.org/stable/users/explain/interactive_guide.html#eventloop-integration-mechanismhttps://matplotlib.org/stable/users/explain/interactive_guide.html#eventloop-integration-mechanism
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 24, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1520917123
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1521741264
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1521927053
https://www.ibm.com/docs/en/i/7.4?topic=functions-fgets-read-stringhttps://www.ibm.com/docs/en/i/7.4?topic=functions-fgets-read-string
https://github.com/tacaswell/build_the_worldhttps://github.com/tacaswell/build_the_world
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1522085078
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1522158922
https://discuss.python.org/t/unbuffered-stdin-bug-in-docs-or-implementation/20361/24https://discuss.python.org/t/unbuffered-stdin-bug-in-docs-or-implementation/20361/24
https://www.gnu.org/software/libc/manual/html_node/I_002fO-on-Streams.htmlhttps://www.gnu.org/software/libc/manual/html_node/I_002fO-on-Streams.html
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1522345033
https://github.com/anntzer
anntzerhttps://github.com/anntzer
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1522411710
https://docs.python.org/3/c-api/veryhigh.html#c.PyOS_InputHookhttps://docs.python.org/3/c-api/veryhigh.html#c.PyOS_InputHook
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 25, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1522458803
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1524665577
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1525595930
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1525838504
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1525927645
python/cpython#103931https://github.com/python/cpython/pull/103931
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1525929487
tacaswellhttps://github.com/tacaswell
completedhttps://github.com/matplotlib/matplotlib/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#event-9116175226
tacaswellhttps://github.com/tacaswell
status: upstream fix requiredhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20upstream%20fix%20required%22
on Apr 27, 2023https://github.com/matplotlib/matplotlib/issues/25756#event-9116176974
https://github.com/jdtsmith
jdtsmithhttps://github.com/jdtsmith
on May 7, 2023https://github.com/matplotlib/matplotlib/issues/25756#issuecomment-1537490642
15 year oldhttps://bugs.python.org/issue23237
Sign up for freehttps://github.com/signup?return_to=https://github.com/matplotlib/matplotlib/issues/25756
Sign in to commenthttps://github.com/login?return_to=https://github.com/matplotlib/matplotlib/issues/25756
status: upstream fix requiredhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22status%3A%20upstream%20fix%20required%22
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.