Title: Clean up base matplotlib namespace · Issue #2052 · matplotlib/matplotlib · GitHub
Open Graph Title: Clean up base matplotlib namespace · Issue #2052 · matplotlib/matplotlib
X Title: Clean up base matplotlib namespace · Issue #2052 · matplotlib/matplotlib
Description: import matplotlib print "\n".join(dir(matplotlib)) yields RcParams Verbose __builtins__ __doc__ __file__ __name__ __package__ __path__ __version__ __version__numpy__ _create_tmp_config_dir _deprecated_ignore_map _deprecated_map _get_conf...
Open Graph Description: import matplotlib print "\n".join(dir(matplotlib)) yields RcParams Verbose __builtins__ __doc__ __file__ __name__ __package__ __path__ __version__ __version__numpy__ _create_tmp_config_dir _depreca...
X Description: import matplotlib print "\n".join(dir(matplotlib)) yields RcParams Verbose __builtins__ __doc__ __file__ __name__ __package__ __path__ __version__ __version__numpy__ _create_tmp_config_di...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/2052
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Clean up base matplotlib namespace","articleBody":"``` python\nimport matplotlib\nprint \"\\n\".join(dir(matplotlib))\n```\n\nyields\n\n```\nRcParams\nVerbose\n__builtins__\n__doc__\n__file__\n__name__\n__package__\n__path__\n__version__\n__version__numpy__\n_create_tmp_config_dir\n_deprecated_ignore_map\n_deprecated_map\n_get_configdir\n_get_data_path\n_get_data_path_cached\n_get_home\n_havedate\n_is_writable_dir\n_python24\n_required\n_use_error_msg\nascii\nbyte2str\ncbook\ncheckdep_dvipng\ncheckdep_ghostscript\ncheckdep_inkscape\ncheckdep_pdftops\ncheckdep_ps_distiller\ncheckdep_tex\ncheckdep_usetex\ncheckdep_xmllint\ncolors\ncompare_versions\ncompat\nconverter\ndateutil\ndefault\ndefaultParams\ndefault_test_modules\ndistutils\nexpected_version\nfontconfig_pattern\nfound_version\nget_backend\nget_configdir\nget_data_path\nget_example_data\nget_home\nget_py2exe_datafiles\ninteractive\nis_interactive\nis_string_like\nkey\nmajor\nmatplotlib_fname\nminor1\nminor2\nnumpy\nos\nprint_function\npyparsing\nrc\nrcParams\nrcParamsDefault\nrcParamsOrig\nrc_context\nrc_file\nrc_file_defaults\nrc_params\nrc_params_from_file\nrcdefaults\nrcsetup\nre\ns\nshutil\nsubprocess\nsys\ntempfile\ntest\ntk_window_focus\ntmp\nuse\nvalidate_backend\nvalidate_toolbar\nverbose\nwarnings\nx\n```\n\nThis is a mess; from the user's standpoint there are some useful things in there, but they are hard to identify among all the detritus from the startup process. And then there is the bewildering rc conglomeration. Maybe that should be treated separately.\n\nI'm not sure whether cleaning this up requires one or more MEPs, but it probably does require some strategic thinking, so I am starting this with a MEP tag.\n\nAs a first shot, maybe all that is required is a bunch of `del` commands sprinkled throughout **init**.py. Or, every variable and module that needs to be deleted could be given a unique prefix, or added to a list, and then all could be deleted at the end.\n\nAlternatively, leading underscores could be used aggressively so that at least when using ipython tab completion, only names that are intended to be part of the public API would appear.\n","author":{"url":"https://github.com/efiring","@type":"Person","name":"efiring"},"datePublished":"2013-05-22T20:48:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/2052/matplotlib/issues/2052"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bd13f7be-113e-fcc9-3d90-dabe2795bc79 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D176:246DB9:FF0E2:158E40:6A5259F8 |
| html-safe-nonce | a0a8df13a7be472f69dc535df3dbbf47968d551f68bc7dea73ec99924212c171 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTc2OjI0NkRCOTpGRjBFMjoxNThFNDA6NkE1MjU5RjgiLCJ2aXNpdG9yX2lkIjoiMjU1MTc2OTQwOTg1NjcwMTM2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8e3a77205f4ca8c9e555902f38a6468ddc6a23a9b98d7c6a4a8c0ce35ce8e2d |
| hovercard-subject-tag | issue:14644687 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/2052/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c0a1e444941f159437a005cd8b218c1f086e99236601c75d0e1040574cac85d9/matplotlib/matplotlib/issues/2052 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c0a1e444941f159437a005cd8b218c1f086e99236601c75d0e1040574cac85d9/matplotlib/matplotlib/issues/2052 |
| og:image:alt | import matplotlib print "\n".join(dir(matplotlib)) yields RcParams Verbose __builtins__ __doc__ __file__ __name__ __package__ __path__ __version__ __version__numpy__ _create_tmp_config_dir _depreca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | efiring |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width