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

Filter "RuntimeWarning: networkx backend defined more than once for networkx" #37912

Merged
merged 1 commit into from
Jun 1, 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: 5 additions & 0 deletions src/sage/all__sagemath_repl.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
message=r"Pickle, copy, and deepcopy support will be "
r"removed from itertools in Python 3.14.")

# triggered in Python 3.9 on Redhat-based distributions
# https://github.com/sagemath/sage/issues/37863
# https://github.com/networkx/networkx/issues/7101
warnings.filterwarnings('ignore', category=RuntimeWarning,
message="networkx backend defined more than once: nx-loopback")

from sage.all__sagemath_objects import *
from sage.all__sagemath_environment import *
Expand Down
Loading