Pickling a function defined interactively in Ipython doesn't work

Ipython's __main__ module is a "FakeModule" the ipython developers created to fix some bugs early in the otherwise very very useful package. So don't be scared if your user-defined top level (__main__) functions can't be pickled in ipython, the code will work when pickling other top lever module functions, only not the ones in __main__ defined interactively. OR simpy use the plain old python interactive console from command line.

Source: http://mail.scipy.org/pipermail/ipython-user/2008-October/005920.html

No hay comentarios:

Publicar un comentario