Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

obnoxious double warning at each script startup #7404

Closed
Milestone
@vnoel

Description

@vnoel

For longer that I can remember, every time I start a script that imports matplotlib I get the following warnings:

/users/noel/.conda/envs/my_root/lib/python2.7/site-packages/matplotlib/backend_managers.py:62:UserWarning: Treat the new Tool classes introduced in v1.5 as experimental for now, the API will likelychange in version 2.1 and perhaps the rcParam as well 'version 2.1 and perhaps the rcParam as well')/users/noel/.conda/envs/my_root/lib/python2.7/site-packages/matplotlib/backend_tools.py:78:UserWarning: Treat the new Tool classes introduced in v1.5 as experimental for now, the API will likelychange in version 2.1, and some tools might change name 'version 2.1, and some tools might change name')

These warnings are not only annoying, as I have no way to fix the code they refer to, but also lead to problems: by making the script output harder to parse, they often hide the actual output I want from the script. They are often longer than the useful script output.

I have seensuggestions to use thewarning module to silence these messages, e.g.

import warningswarnings.filterwarnings(action='ignore')

but I don't think this is a practical solution, as 1) I would need to add these two lines every time I create a new script that uses matplotlib (which is often), and 2) I would silence at the same time all the other warnings, that could be actually useful.

matplotlib 1.5.3 Python 2.7.12 on linux installed through conda, TkAgg backend.

Apparently not everyone sees those warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp