ipython-books / cookbook-code

[DEPRECATED] See the new edition:
http://ipython-books.github.io/
Other
972 stars 457 forks source link

Upgraded Chapter 01 Recipe 05 to IPython 4.0.0 #27

Closed BCSharp closed 8 years ago

BCSharp commented 8 years ago

The new version of Python/Jupyter (starting from IPython version 4.0.0) brings some backward-incompatible changes. This pull request contains updates to just one notebook to make it runnable under Python 4.0.0.

I do not know what the policy is for such changes in this repository, so I assumed it is the same as for Python 3.x/2.x incompatibilities, i.e. the code is for the latest version, with a comment for previous versions. Maybe a dedicated branch will be a better idea, but more maintenance work.

If this approach is OK, I can submit more patches, one notebook at a time.

rossant commented 8 years ago

Awesome, thanks so much @BCSharp Updating to the latest version with a comment for previous versions is fine. Looking forward to further updates!