.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/builtin_modules/_warnings.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_builtin_modules__warnings.py: ============= 3.9 warnings ============= .. important:: This lesson is still under development. .. GENERATED FROM PYTHON SOURCE LINES 10-14 .. code-block:: default import warnings .. GENERATED FROM PYTHON SOURCE LINES 15-16 warn() .. GENERATED FROM PYTHON SOURCE LINES 19-20 catch_warnings .. GENERATED FROM PYTHON SOURCE LINES 23-24 filterwarnings() .. GENERATED FROM PYTHON SOURCE LINES 27-28 simplefilter() .. GENERATED FROM PYTHON SOURCE LINES 31-31 showwarning() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_builtin_modules__warnings.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/AtrCheema/python-seekho/master?urlpath=lab/tree/notebooks/auto_examples/builtin_modules/_warnings.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: _warnings.py <_warnings.py>` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: _warnings.ipynb <_warnings.ipynb>` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_