Make the example notebooks Python 2 and 3 compatible, so that Python 3 users can get started easily too.
Along the way, I found a couple of other minor issues in the notebooks, and a problem with Image() objects when created with data=b'...'.
Simple changes to make example notebooks Python 2 and 3 compatible
Fixes to display objects in Python 3
@ellisonbg Brian, as I'm new to the block, would I have to install .14 dev in order to take advantage of your rewritten notebooks?
Wow that's great. Everything looks good to me. +1 for merging.
@ellisonbg #2537 already does not merge cleanly... how much effort is required in rebasing it and fixing the conflicts?
@pleabargain You should be able to just download the updated files, for example from https://github.com/takluyver/ipython/tree/f70e8ef9243bb18ec962b0b926899214a4623c35/docs/examples/notebooks
I have no opinion on the matter (docs/examples vs. examples).
I don't care about moving the examples out of the docs directory (benefit is negligible, and cost is minor), but in doing so, you must also take care of the literalinclude calls that currently depend on examples (update the paths, duplicate the files, or some such). An earlier rewrite of an example (options pricer, I think?) already broke one of these, so clearly people are not paying attention to this.
Thanks @takluyver for the work here. Unless @ellisonbg thinks he will get to the notebook restructuring soon, I think we should consider merging this now.
@takluyver I have merged your PR against my branch. I am going to finish the work on my branch now so we can merge it. Does this PR have anything in addition or can it be closed?
Thanks Brian. Nope, it should be the same stuff. Closing this one.