##// END OF EJS Templates
Backport PR #10225: Add 'v' binding in vi-navigation-mode to %edit....
Backport PR #10225: Add 'v' binding in vi-navigation-mode to %edit. See https://github.com/ipython/ipython/pull/9929 issuecomment-276264230.

File last commit:

r21610:1a273e45
r23347:f7867ad3 auto-backport-of-...
Show More
nbconvert.py
19 lines | 633 B | text/x-python | PythonLexer
"""
Shim to maintain backwards compatibility with old IPython.nbconvert imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
from warnings import warn
from IPython.utils.shimmodule import ShimModule, ShimWarning
warn("The `IPython.nbconvert` package has been deprecated. "
"You should import from nbconvert instead.", ShimWarning)
# Unconditionally insert the shim into sys.modules so that further import calls
# trigger the custom attribute access above
sys.modules['IPython.nbconvert'] = ShimModule(
src='IPython.nbconvert', mirror='nbconvert')