I'd like to rename %paste
to something like %pp
so that it takes fewer keystrokes. I worked out a way to do that but it seems complicated. Is there a better way?
def foo(self, bar):
get_ipython().magic("paste")
get_ipython().define_magic('pp', foo)