import IPython.rlineimpl as readline readline.parse_and_bind('"\C-r": reverse-search-history')