Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f33ca74

Browse files
committed
Update shim warnings to include IPython version.
It will soon be 2 major versions, and we are dropping, I'm considering either dropping shims, or insert a filter to make them raise and let a last chance for users to upgrade before removing. Closes #10143
1 parent a1a338f commit f33ca74

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

IPython/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.config` package has been deprecated. "
12+
warn("The `IPython.config` package has been deprecated since IPython 4.0. "
1313
"You should import from traitlets.config instead.", ShimWarning)
1414

1515

IPython/frontend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from IPython.utils.shimmodule import ShimModule, ShimWarning
1919

20-
warn("The top-level `frontend` package has been deprecated. "
20+
warn("The top-level `frontend` package has been deprecated since IPython 1.0. "
2121
"All its subpackages have been moved to the top `IPython` level.", ShimWarning)
2222

2323
# Unconditionally insert the shim into sys.modules so that further import calls

IPython/html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.html` package has been deprecated. "
12+
warn("The `IPython.html` package has been deprecated since IPython 4.0. "
1313
"You should import from `notebook` instead. "
1414
"`IPython.html.widgets` has moved to `ipywidgets`.", ShimWarning)
1515

IPython/kernel/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.kernel` package has been deprecated. "
12+
warn("The `IPython.kernel` package has been deprecated since IPython 4.0."
1313
"You should import from ipykernel or jupyter_client instead.", ShimWarning)
1414

1515

IPython/nbconvert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.nbconvert` package has been deprecated. "
12+
warn("The `IPython.nbconvert` package has been deprecated since IPython 4.0. "
1313
"You should import from nbconvert instead.", ShimWarning)
1414

1515
# Unconditionally insert the shim into sys.modules so that further import calls

IPython/nbformat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.nbformat` package has been deprecated. "
12+
warn("The `IPython.nbformat` package has been deprecated since IPython 4.0. "
1313
"You should import from nbformat instead.", ShimWarning)
1414

1515
# Unconditionally insert the shim into sys.modules so that further import calls

IPython/parallel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.parallel` package has been deprecated. "
12+
warn("The `IPython.parallel` package has been deprecated since IPython 4.0. "
1313
"You should import from ipyparallel instead.", ShimWarning)
1414

1515
# Unconditionally insert the shim into sys.modules so that further import calls

IPython/qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.qt` package has been deprecated. "
12+
warn("The `IPython.qt` package has been deprecated since IPython 4.0. "
1313
"You should import from qtconsole instead.", ShimWarning)
1414

1515
# Unconditionally insert the shim into sys.modules so that further import calls

IPython/terminal/console.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from IPython.utils.shimmodule import ShimModule, ShimWarning
1111

12-
warn("The `IPython.terminal.console` package has been deprecated. "
12+
warn("The `IPython.terminal.console` package has been deprecated since IPython 4.0. "
1313
"You should import from jupyter_console instead.", ShimWarning)
1414

1515
# Unconditionally insert the shim into sys.modules so that further import calls

0 commit comments

Comments
 (0)