You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- use local modified ipython_directive to add optional no_traceback
argument to :ok_except: which prevents the (sometimes long) traceback
from being printed (default is no argument, i.e. the traceback is
printed) and enable the @okexcept pseudodecorator so that it can be
applied to individual instructions instead of the whole block
- use local modified ipython_console_highlighting to enable syntax
highlighting of exceptions without a traceback
- fix pylint warnings for ipython_directive.py and simplify
"".join(["."] * x) to "." * x
The "# noqa: E999" after "@okexcept no_traceback" is necessary to
prevent flake8-rst from complaining about syntax errors as it
interprets the pseudodecorator as a real python decorator.
Items 1 and 2 can be reverted if github.com/ipython/ipython/pull/13751
gets merged upstream.
0 commit comments