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

Ignore MPL cache warnings #1362

Merged
merged 1 commit into from
May 14, 2024
Merged

Ignore MPL cache warnings #1362

merged 1 commit into from
May 14, 2024

Conversation

frankharkins
Copy link
Member

We occasionally see the following warnings when executing notebooks:

Screenshot 2024-05-14 at 10 18 24

See logs.

These warnings are harmless, out of our control, and break CI. This PR runs some code in the kernel before notebook execution to disable them.

@frankharkins frankharkins added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 1ace1da May 14, 2024
2 checks passed
@frankharkins frankharkins deleted the FH/ignore-mpl-warnings branch May 14, 2024 11:33
github-merge-queue bot pushed a commit that referenced this pull request May 14, 2024
#1362 didn't work as Matplotlib emits warnings through the `logging`
module rather than the `warnings` module. This follows advice
(matplotlib/matplotlib#23326 (comment))
to correctly suppress the warnings.
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
We occasionally see the following warnings when executing notebooks:

<img width="503" alt="Screenshot 2024-05-14 at 10 18 24"
src="https://github.com/Qiskit/documentation/assets/36071638/74c174b0-68fc-4eb3-b64c-e77f2e00a5ca">

[See
logs](https://github.com/Qiskit/documentation/actions/runs/9020672968/job/24786345632#step:7:90).

These warnings are harmless, out of our control, and break CI. This PR
runs some code in the kernel before notebook execution to disable them.
frankharkins added a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
Qiskit#1362 didn't work as Matplotlib emits warnings through the `logging`
module rather than the `warnings` module. This follows advice
(matplotlib/matplotlib#23326 (comment))
to correctly suppress the warnings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants