##// END OF EJS Templates
Merge pull request #1039 from Carreau/notebook-as-you-type-completer...
Merge pull request #1039 from Carreau/notebook-as-you-type-completer Improve tab-completer in the notebook to filter list of completions 'as you type'. Once the completions list is opened, you can continue typing letters and the list will filter down as less items match. Typing tab again will activate the completion once there are no ambiguities. This brings the experience in the notebook much closer to the feel of a readline completer, so muscle memory can carry across systems.

File last commit:

r5204:21bd9353
r5528:b44cdc3d merge
Show More
skipdoctest.py
21 lines | 768 B | text/x-python | PythonLexer
"""This decorator marks that a doctest should be skipped.
The IPython.testing.decorators module triggers various extra imports, including
numpy and sympy if they're present. Since this decorator is used in core parts
of IPython, it's in a separate module so that running IPython doesn't trigger
those imports."""
import sys
def skip_doctest(f):
"""Decorator - mark a function or method for skipping its doctest.
This decorator allows you to mark a function whose docstring you wish to
omit from testing, while preserving the docstring for introspection, help,
etc."""
f.skip_doctest = True
return f
def skip_doctest_py3(f):
"""Decorator - skip the doctest under Python 3."""
f.skip_doctest = (sys.version_info[0] >= 3)
return f