René's URL Explorer Experiment


Title: Autocompletion on rcParams: long-overdue restructuring of rcParams · Issue #2249 · matplotlib/matplotlib · GitHub

Open Graph Title: Autocompletion on rcParams: long-overdue restructuring of rcParams · Issue #2249 · matplotlib/matplotlib

X Title: Autocompletion on rcParams: long-overdue restructuring of rcParams · Issue #2249 · matplotlib/matplotlib

Description: It would be great to have autocompletion on rcParams (or settings) in IPython, so you could do settings["fon"] and get a list of all keys containing the string "fon". This would be another tool to get people modifying settings. Curr...

Open Graph Description: It would be great to have autocompletion on rcParams (or settings) in IPython, so you could do settings["fon"] and get a list of all keys containing the string "fon". This would be another too...

X Description: It would be great to have autocompletion on rcParams (or settings) in IPython, so you could do settings["fon<TAB>"] and get a list of all keys containing the string "fon"....

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autocompletion on rcParams: long-overdue restructuring of rcParams","articleBody":"It would be great to have autocompletion on `rcParams` (or `settings`) in IPython, so you could do\n\n```\nsettings[\"fon\u003cTAB\u003e\"]\n```\n\nand get a list of all keys containing the string \"fon\".\nThis would be another tool to get people modifying settings.\n\nCurrently there is no completion on dictionary keys in IPython -- I am hoping to implement this this week.\n\nHowever, a nicer solution, in my opinion, is attribute access, so you could do e.g.\n\n```\nsettings.xtick.color = 'b'\n```\n\nThis is easy to implement by hand. But it turns out that it is already implemented in IPython! Even if in a slightly obscure (but super-general so nothing done by hand) way:\n\n```\nfrom matplotlib import rcParams\nfrom IPython.config import Config\n\nsettings = Config(rcParams)\n```\n\nYou can now _automatically_  use the `settings.xtick.color` syntax _and_ completion!:\n\n```\nsettings.xtic\u003cTAB\u003e\n```\n\ngives a list of all the settings starting with `xtic`. (See below for more completion magic).\n\n_However_, there is a problem with the names of the `rcParams` keys using `.` as a separator, namely that doing\n\n```\nsettings.xtick.\u003cTAB\u003e\n```\n\nno longer completes anything. This is because it is treating `settings.xtick` as a subdictionary or subclass.\n\nThere are 2 possible solutions:\n1. Change the names of the `settings` keys, e.g. to xtick_minor_pad. Yuck.\n2. An excellent solution -- not just for this autocompletion problem -- is the following:\n\nReally turn the sequence of names including `.`s in the string in the attribute-access pattern into _real sub-dictionaries_  of `rcParams`.\n\nOf course, this makes the dictionary key syntax horrible, but there would be no longer be any need for it -- we would just switch over wholesale to the `.` attribute syntax.\n\nOf course, this breaks some backward compatibility, but it gives a much more logical structure to rcParams as a whole.\n[And, thinking about it, it should be possible to rewrite the dictionary access functions so that the old key accesses still work!]\n\nOf course, the magic going on in the IPython.config module is easily extractable straight in to rcParams, in case somebody is worried that this depends on IPython.\n\n------- [Comments on future IPython command completion possibilities below]\n\nIn fact, I have a mod for IPython's command completion which completes any word containing the letters that you type in a certain order. Here is the output for\n\n```\nsettings.fon\u003cTAB\u003e:\n```\n\n```\nsettings.figure.frameon           settings.legend.fontsize\nsettings.figure.max_open_warning  settings.legend.frameon\nsettings.font.cursive             settings.mathtext.fontset\nsettings.font.family              settings.pdf.compression\nsettings.font.fantasy             settings.pdf.fonttype\nsettings.font.monospace           settings.pdf.use14corefonts\nsettings.font.sans-serif          settings.pgf.rcfonts\nsettings.font.serif               settings.ps.fonttype\nsettings.font.size                settings.savefig.extension\nsettings.font.stretch             settings.savefig.frameon\nsettings.font.style               settings.savefig.orientation\nsettings.font.variant             settings.svg.fonttype\nsettings.font.weight              \n```\n\nIt includes things that don't _start_  with `fon` but contain the sequence of characters `f`, `o`, `n` in that order.\n\nAn alternative is to just search for the word `fon`, without splitting up the characters.\nI hope to submit an IPython pull request soon. It will be possible to change between these different types of completion mechanism with a standard IPython configuration method.\n","author":{"url":"https://github.com/dpsanders","@type":"Person","name":"dpsanders"},"datePublished":"2013-07-24T13:08:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2249/matplotlib/issues/2249"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:898aa1c5-002c-7514-aa9b-75ca746c345d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE4AA:23767B:12B8194:1B1ED4B:6A54D446
html-safe-noncebcf1b9bc081c91fab21f139429867f53e76438629101c004bba2cd62b16ba36d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEFBOjIzNzY3QjoxMkI4MTk0OjFCMUVENEI6NkE1NEQ0NDYiLCJ2aXNpdG9yX2lkIjoiNjE1NjUyNzE3NzUyMzU4MjAyMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaccd4b792944025a4ac18ec14ff30fcdf863f8b782f569ebbd38ee72e440632d69
hovercard-subject-tagissue:17155294
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/2249/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f834216f6d84ce7008f8c9655fb4ccb83736a0741772fee5d5bd3043f6463d1f/matplotlib/matplotlib/issues/2249
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f834216f6d84ce7008f8c9655fb4ccb83736a0741772fee5d5bd3043f6463d1f/matplotlib/matplotlib/issues/2249
og:image:altIt would be great to have autocompletion on rcParams (or settings) in IPython, so you could do settings["fon"] and get a list of all keys containing the string "fon". This would be another too...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedpsanders
hostnamegithub.com
expected-hostnamegithub.com
Nonea556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54
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
release840b5d20d5a883c23cf56f5240b2c343d6cc0867
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/2249#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F2249
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%2F2249
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/2249
Reloadhttps://github.com/matplotlib/matplotlib/issues/2249
Reloadhttps://github.com/matplotlib/matplotlib/issues/2249
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/2249
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/2249
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
Autocompletion on rcParams: long-overdue restructuring of rcParamshttps://github.com/matplotlib/matplotlib/issues/2249#top
https://github.com/dpsanders
dpsandershttps://github.com/dpsanders
on Jul 24, 2013https://github.com/matplotlib/matplotlib/issues/2249#issue-17155294
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.