##// 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 Shim to maintain backwards compatibility with old IPython.nbconvert imports.
2 Shim to maintain backwards compatibility with old IPython.nbconvert imports.
3 """
3 """
4 # Copyright (c) IPython Development Team.
4 # Copyright (c) IPython Development Team.
5 # Distributed under the terms of the Modified BSD License.
5 # Distributed under the terms of the Modified BSD License.
6
6
7 import sys
7 import sys
8 from warnings import warn
8 from warnings import warn
9
9
10 from IPython.utils.shimmodule import ShimModule, ShimWarning
10 from IPython.utils.shimmodule import ShimModule, ShimWarning
11
11
12 warn("The `IPython.nbconvert` package has been deprecated. "
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 # Unconditionally insert the shim into sys.modules so that further import calls
15 # Unconditionally insert the shim into sys.modules so that further import calls
16 # trigger the custom attribute access above
16 # trigger the custom attribute access above
17
17
18 sys.modules['IPython.nbconvert'] = ShimModule(
18 sys.modules['IPython.nbconvert'] = ShimModule(
19 src='IPython.nbconvert', mirror='nbconvert')
19 src='IPython.nbconvert', mirror='nbconvert')
General Comments 0
You need to be logged in to leave comments. Login now