diff --git a/docs/conf.py b/docs/conf.py index a2284016a..f688887ea 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -76,4 +76,7 @@ # nbsphinx_execute = os.getenv('QISKIT_DOCS_BUILD_TUTORIALS', 'never') nbsphinx_execute = 'always' nbsphinx_widgets_path = '' -exclude_patterns = ['_build', '**.ipynb_checkpoints'] \ No newline at end of file +exclude_patterns = ['_build', '**.ipynb_checkpoints'] + +import warnings +warnings.filterwarnings("error") \ No newline at end of file diff --git a/docs/userguide/perturbative_solvers.rst b/docs/userguide/perturbative_solvers.rst index 0f773fb6a..10d5ef489 100644 --- a/docs/userguide/perturbative_solvers.rst +++ b/docs/userguide/perturbative_solvers.rst @@ -75,9 +75,6 @@ on the perturbative solver speed. .. jupyter-execute:: - import warnings - warnings.filterwarnings("error") - import numpy as np dim = 10 # Oscillator dimension