I want to save my work but learn.export() is failing with the error PicklingError: Can't pickle <function <lambda> at 0x7f60e83e6bf8>: attribute lookup <lambda> on __main__ failed
I used pickle_protocol=dill and that worked. This is an issue where arbitrary named functions can’t be defined (or imported) to your execution context.