Skip to content

Commit 474696d

Browse files
committed
suppress warning when switching to tkagg backend
1 parent b89123f commit 474696d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hypertools/plot/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
#!/usr/bin/env python
2+
import warnings
23
import matplotlib as mpl
3-
mpl.use('TkAgg')
4+
5+
with warnings.catch_warnings():
6+
warnings.simplefilter("ignore")
7+
mpl.use('TkAgg')

0 commit comments

Comments
 (0)