You can use the warnings module from the Python standard Library.

import warnings
warnings.filterwarnings(action='ignore')

This will silence all Python warnings. The signature for
warnings.filterwarnings
<https://docs.python.org/2/library/warnings.html#the-warnings-filter> can
also be used to only suppress some warnings.

On Thu, Dec 17, 2015 at 10:40 AM, Virgil Stokes <v...@it.uu.se> wrote:

I recently upgraded to vers. 1.5.0 and I am now getting some warning
> messages.
> For example:
>
> D:\Python27\lib\site-packages\matplotlib\backend_managers.py:62:
> UserWarning:
> Treat the new Tool classes introduced in v1.5 as experimental for now, the
> API
> will likely change in version 2.1 and perhaps the rcParam as well
>    'version 2.1 and perhaps the rcParam as well')
> D:\Python27\lib\site-packages\matplotlib\backend_tools.py:78: UserWarning:
> Treat
> the new Tool classes introduced in v1.5 as experimental for now, the API
> will
> likely change in version 2.1, and some tools might change name
>    'version 2.1, and some tools might change name')
>
> How can I keep these messages from being displayed (at least temporarily)?
>
> --V
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
​
------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to