-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Clean up base matplotlib namespace #2052
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
To remove most of the As you say, much of the rest looks like it could simply be |
I don't necessarily think we need a MEP for this - thanks to @mdboom's deprecate wrapper it'd be a pretty quick PR to deprecate most of the unnecessary stuff - is feasible to get this into |
The name |
Namespace is still stuffy. For clarity, the deprecate functionality is here https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/cbook.py. You can see examples of usage in commit 8364f87 |
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help! |
While we have made some progress, there's still things we may want to clean up. |
yields
This 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.
I'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.
As 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.Alternatively, 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.
The text was updated successfully, but these errors were encountered: