Skip to content
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

Fix MPL warning suppression #1368

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions scripts/nb-tester/qiskit_docs_notebook_tester/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@

# We always run the following code in the kernel before running the notebook
PRE_EXECUTE_CODE = """\
import warnings
warnings.filterwarnings("ignore", message="Matplotlib is building the font cache; this may take a moment.")
import matplotlib
# See https://github.com/matplotlib/matplotlib/issues/23326#issuecomment-1164772708
matplotlib.set_loglevel("critical")
frankharkins marked this conversation as resolved.
Show resolved Hide resolved
"""

# If not submitting jobs, we also run this code before notebook execution to mock the real backend
Expand Down
Loading