##// END OF EJS Templates
Merge pull request #8744 from aavanian/nbconvert-shim-fix...
Min RK -
r21611:4c18aeea merge
parent child Browse files
Show More
@@ -1,19 +1,19 b''
1 1 """
2 2 Shim to maintain backwards compatibility with old IPython.nbconvert imports.
3 3 """
4 4 # Copyright (c) IPython Development Team.
5 5 # Distributed under the terms of the Modified BSD License.
6 6
7 7 import sys
8 8 from warnings import warn
9 9
10 10 from IPython.utils.shimmodule import ShimModule, ShimWarning
11 11
12 12 warn("The `IPython.nbconvert` package has been deprecated. "
13 "You should import from ipython_nbconvert instead.", ShimWarning)
13 "You should import from nbconvert instead.", ShimWarning)
14 14
15 15 # Unconditionally insert the shim into sys.modules so that further import calls
16 16 # trigger the custom attribute access above
17 17
18 18 sys.modules['IPython.nbconvert'] = ShimModule(
19 19 src='IPython.nbconvert', mirror='nbconvert')
General Comments 0
You need to be logged in to leave comments. Login now