##// END OF EJS Templates
Add new commands refresh and refresh_timer (mapped to "R"/"F5"...
Add new commands refresh and refresh_timer (mapped to "R"/"F5" and to the menu) which restarts the iterator once (refresh) or after every x seconds (refresh_timer). Add a working implementation of "searchexpression", where the text entered is not the text to search for, but an expression that must be true. Added display of shortcuts to the menu. Added commands "pickinput" and "pickinputattr" that put the object or attribute under the cursor in the input line. Split the statusbar to be able to display the currently active refresh interval. (Patch by Nik Tautenhahn)

File last commit:

r697:0e0c499f
r708:c2a1e430
Show More
generics.py
27 lines | 775 B | text/x-python | PythonLexer
from IPython.ipapi import TryNext
from IPython.external.simplegeneric import generic
''' 'Generic' functions for extending IPython
See http://cheeseshop.python.org/pypi/simplegeneric
Here's an example from genutils.py:
def print_lsstring(arg):
""" Prettier (non-repr-like) and more informative printer for LSString """
print "LSString (.p, .n, .l, .s available). Value:"
print arg
print_lsstring = result_display.when_type(LSString)(print_lsstring)
(Yes, the nasty syntax is for python 2.3 compatibility. Your own extensions
can use the niftier decorator syntax)
'''
def result_display(result):
""" print the result of computation """
raise TryNext
result_display = generic(result_display)