##// END OF EJS Templates
Remove the "autoedit_syntax" feature....
Remove the "autoedit_syntax" feature. IPython used to (a long time ago, in a galaxy far far away) have the ability to automatically open an editor in case a wild syntax error appears. The configuration option to enable that was not working for a few years, and apparently we by mistake re enabled it, to discover that the feature is actually broken. So this plainly remove the code to support this feature, at the exception of the `fix_error_editor` hook. Indeed it is public API, so for now as it seem to be used only for this feature, we'll just raise a UserWarning (there is roughly 0 chance of this being tested as it's used mostly interactively, so DeprecationWarnings would be unseen). We'll remove later if no complaints Closes #9603

File last commit:

r21515:2c9013e4
r22576:b7d03ed6
Show More
parallel.py
20 lines | 634 B | text/x-python | PythonLexer
Min RK
shim out IPython.parallel into ipython_parallel
r20858 """
Shim to maintain backwards compatibility with old IPython.parallel imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
from warnings import warn
Min RK
add ShimWarning for shimmed imports...
r21515 from IPython.utils.shimmodule import ShimModule, ShimWarning
Min RK
shim out IPython.parallel into ipython_parallel
r20858
Min RK
add ShimWarning for shimmed imports...
r21515 warn("The `IPython.parallel` package has been deprecated. "
"You should import from ipyparallel instead.", ShimWarning)
Min RK
shim out IPython.parallel into ipython_parallel
r20858
# Unconditionally insert the shim into sys.modules so that further import calls
# trigger the custom attribute access above
Min RK
add import hook for shim packages...
r20990 sys.modules['IPython.parallel'] = ShimModule(
Min RK
ipython_parallel is now ipyparallel
r21326 src='IPython.parallel', mirror='ipyparallel')
Min RK
add import hook for shim packages...
r20990