René's URL Explorer Experiment


Title: CHANGE FEATURE: Allow a custom template RST for plot methods · Issue #5 · psyplot/psyplot · GitHub

Open Graph Title: CHANGE FEATURE: Allow a custom template RST for plot methods · Issue #5 · psyplot/psyplot

X Title: CHANGE FEATURE: Allow a custom template RST for plot methods · Issue #5 · psyplot/psyplot

Description: Summary Plot methods should be documented using a template rather than a hard-coded docstring. Reason You could easily add more examples and explanation Current behaviour Plot methods are registered using psyplot.project.register_plotter...

Open Graph Description: Summary Plot methods should be documented using a template rather than a hard-coded docstring. Reason You could easily add more examples and explanation Current behaviour Plot methods are registere...

X Description: Summary Plot methods should be documented using a template rather than a hard-coded docstring. Reason You could easily add more examples and explanation Current behaviour Plot methods are registere...

Opengraph URL: https://github.com/psyplot/psyplot/issues/5

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CHANGE FEATURE: Allow a custom template RST for plot methods","articleBody":"#### Summary\r\nPlot methods should be documented using a template rather than a hard-coded docstring.\r\n\r\n#### Reason\r\nYou could easily add more examples and explanation\r\n\r\n#### Current behaviour\r\nPlot methods are registered using `psyplot.project.register_plotter` and the documentation is generated via the `psyplot.project.ProjectPlotter._gen_doc` method. This only gives a minimal possibility to modify the plot method, you can only set the `example_call` and the `show_examples`\r\nparameter.\r\n\r\n#### New behaviour\r\nInstead of hard-coded keywords, such as `example_call` and `show_examples`, one should create a template for the description and another template for the epilog.\r\n\r\nThose templates could then be specified in the `register_plotter` call and the `psyplot.project.ProjectPlotter._register_plotter` method takes ``**kwargs`` that are than used to format the template via ``template_str.format(**kwargs)``\r\n\r\n#### Examples\r\nDefault template for the main docstring\r\n\u003cdetails\u003e\r\n\r\n```reStructuredText\r\n{summary}\r\n\r\n{description}\r\n\r\nTo plot data from a netCDF file type::\r\n\r\n    \u003e\u003e\u003e psy.plot.{identifier}({example_call})\r\n```\r\n\u003c/details\u003e\r\n\r\n***\r\n\r\nDefault template for the epilog\r\n\u003cdetails\u003e\r\n\r\n```reStructuredText\r\nExamples\r\n--------\r\nTo explore the formatoptions and their documentations, use the\r\n``keys``, ``summaries`` and ``docs`` methods. For example::\r\n\r\n    \u003e\u003e\u003e import psyplot.project as psy\r\n\r\n    # show the keys corresponding to a group or multiple\r\n    # formatopions\r\n    \u003e\u003e\u003e psy.plot.{identifier}.keys('labels')\r\n\r\n    # show the summaries of a group of formatoptions or of a\r\n    # formatoption\r\n    \u003e\u003e\u003e psy.plot.{identifier}.summaries('title')\r\n\r\n    # show the full documentation\r\n    \u003e\u003e\u003e psy.plot.{identifier}.docs('plot')\r\n\r\n    # or access the documentation via the attribute\r\n    \u003e\u003e\u003e psy.plot.%(identifier)s.plot\r\n```\r\n\u003c/details\u003e\r\n\r\n***\r\n\r\nNew function call for `ProjectPlotter._register_plotter`\r\n\r\n\u003cdetails\u003e\r\n\r\n```python\r\ndef _register_plotter(cls, identifier, module, plotter_name,\r\n                      plotter_cls=None, summary='', prefer_list=False,\r\n                      default_slice=None, default_dims={},\r\n                      example_call=\"filename, name=['my_variable'], ...\",\r\n                      description_template='description.rst',\r\n                      epilog_template='epilog.rst',\r\n                      plugin=None):\r\n                      \"\"\"show_examples should be depreceated\"\"\"\r\n```\r\n\u003c/details\u003e\r\n","author":{"url":"https://github.com/Chilipp","@type":"Person","name":"Chilipp"},"datePublished":"2018-04-12T20:58:02.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/5/psyplot/issues/5"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:092362e4-a834-a9f6-720f-8efc10075811
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDBBC:108ED4:54C15E5:740424F:698CFA5F
html-safe-nonce3045ec3777612aa387a35cff64323c0fd69bc795e5482933daba12201b5467f3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkJDOjEwOEVENDo1NEMxNUU1Ojc0MDQyNEY6Njk4Q0ZBNUYiLCJ2aXNpdG9yX2lkIjoiMzM4NzgwNzkwMjA2MDA1MTAzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca039436680ace4c2a0db263128f6a22885b7d2d8e64fa77b75b8fd810d769323
hovercard-subject-tagissue:313884981
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/psyplot/psyplot/5/issue_layout
twitter:imagehttps://opengraph.githubassets.com/de3ca2be4ed17aeeaf54362d1541ab425a2a0d2ccad6a672e9486fd49f6e8b1b/psyplot/psyplot/issues/5
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/de3ca2be4ed17aeeaf54362d1541ab425a2a0d2ccad6a672e9486fd49f6e8b1b/psyplot/psyplot/issues/5
og:image:altSummary Plot methods should be documented using a template rather than a hard-coded docstring. Reason You could easily add more examples and explanation Current behaviour Plot methods are registere...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameChilipp
hostnamegithub.com
expected-hostnamegithub.com
None09447bc7ef1f50c40a646f48e82dfbd31133c28c940bfee5a938619ac0191038
turbo-cache-controlno-preview
go-importgithub.com/psyplot/psyplot git https://github.com/psyplot/psyplot.git
octolytics-dimension-user_id60222268
octolytics-dimension-user_loginpsyplot
octolytics-dimension-repository_id87944102
octolytics-dimension-repository_nwopsyplot/psyplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id87944102
octolytics-dimension-repository_network_root_nwopsyplot/psyplot
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
release02f0047575af3d968e1dea9cf0b6015a852cddfe
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/psyplot/psyplot/issues/5#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpsyplot%2Fpsyplot%2Fissues%2F5
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fpsyplot%2Fpsyplot%2Fissues%2F5
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=psyplot%2Fpsyplot
Reloadhttps://github.com/psyplot/psyplot/issues/5
Reloadhttps://github.com/psyplot/psyplot/issues/5
Reloadhttps://github.com/psyplot/psyplot/issues/5
psyplot https://github.com/psyplot
psyplothttps://github.com/psyplot/psyplot
Notifications https://github.com/login?return_to=%2Fpsyplot%2Fpsyplot
Fork 15 https://github.com/login?return_to=%2Fpsyplot%2Fpsyplot
Star 79 https://github.com/login?return_to=%2Fpsyplot%2Fpsyplot
Code https://github.com/psyplot/psyplot
Issues 8 https://github.com/psyplot/psyplot/issues
Pull requests 0 https://github.com/psyplot/psyplot/pulls
Actions https://github.com/psyplot/psyplot/actions
Projects 0 https://github.com/psyplot/psyplot/projects
Security 0 https://github.com/psyplot/psyplot/security
Insights https://github.com/psyplot/psyplot/pulse
Code https://github.com/psyplot/psyplot
Issues https://github.com/psyplot/psyplot/issues
Pull requests https://github.com/psyplot/psyplot/pulls
Actions https://github.com/psyplot/psyplot/actions
Projects https://github.com/psyplot/psyplot/projects
Security https://github.com/psyplot/psyplot/security
Insights https://github.com/psyplot/psyplot/pulse
New issuehttps://github.com/login?return_to=https://github.com/psyplot/psyplot/issues/5
New issuehttps://github.com/login?return_to=https://github.com/psyplot/psyplot/issues/5
CHANGE FEATURE: Allow a custom template RST for plot methodshttps://github.com/psyplot/psyplot/issues/5#top
change featureRequest for changing a feature in the packagehttps://github.com/psyplot/psyplot/issues?q=state%3Aopen%20label%3A%22change%20feature%22
https://github.com/Chilipp
https://github.com/Chilipp
Chilipphttps://github.com/Chilipp
on Apr 12, 2018https://github.com/psyplot/psyplot/issues/5#issue-313884981
change featureRequest for changing a feature in the packagehttps://github.com/psyplot/psyplot/issues?q=state%3Aopen%20label%3A%22change%20feature%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.