ipython/ipython — pull request #5761 by minrk (2014-04-30 20:12:10+00:00)
Title: handle simple closures in pickleutil

It turns out this is pretty straightforward. I'm sure there are plenty of cases where dill / cloud pickle are going to be desirable, but Python 3 makes trivial closures a lot more likely, and this handles those cases easily enough.