Skip to content

Commit 6a56612

Browse files
committed
Add deprecation warnings
1 parent d4b27d4 commit 6a56612

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

ipykernel/pylab/backend_inline.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
# Copyright (c) IPython Development Team.
44
# Distributed under the terms of the Modified BSD License.
55

6+
import warnings
7+
68
from matplotlib_inline.backend_inline import * # analysis: ignore
9+
10+
11+
warnings.warn(
12+
"`ipykernel.pylab.backend_inline` is deprecated, directly "
13+
"use `matplotlib_inline.backend_inline`",
14+
DeprecationWarning
15+
)

ipykernel/pylab/config.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,13 @@
33
This module does not import anything from matplotlib.
44
"""
55

6+
import warnings
7+
68
from matplotlib_inline.config import * # analysis: ignore
9+
10+
11+
warnings.warn(
12+
"`ipykernel.pylab.config` is deprecated, directly "
13+
"use `matplotlib_inline.config`",
14+
DeprecationWarning
15+
)

0 commit comments

Comments
 (0)