as proposed in #2754
Only interactively defined classes are canned.
test canning classes
py3compat for class canning
I just tried your branch and I confirm it fixes the notebook example I submitted in #2754. Thanks
This code has tests that pass, and the user confirmed it fixes the issue. I would go ahead and merge.
I don't know the change-log policy for the IPython project but should not that be documented somewhere, maybe in the whats new section of the doc?
For little bugfixes like this, I think the generated GitHub summary that goes in whatsnew is sufficient.