This magic supplies five functions:
%lookupline magic
It uses current line as arguments for querying Activestate recipes, then returns indexed list with up to 10 recipe names
%descline magic
Prints recipe's description by index from lookup results or by id
%listingline magic
Listing of recipe by index from lookup results or by id
%placeline magic
Places recipe by index from lookup results or by id, on input line
%implyline magic
Imports recipe by index from lookup results or by id, in user namespace
%install_ext https://raw.githubusercontent.com/debjan/ipython-recipes-magic/master/recipes.py
