ipython/ipython — pull request #7117 by takluyver (2014-12-05 21:47:31+00:00)
Title: Make nbformat.(read|write) accept file-like object or path

Requested by @fperez .

```python
with open('/path/to/some.ipynb') as f:
nbformat.read(f, as_version=4)

# Can now be written:
nbformat.read('/path/to/some.ipynb', as_version=4)
```

And likewise for `write()`.

This shouldn't break anything, it just adds the ability to pass a path as a string.