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