The `vcs_adapter` code shouldn't have to know how about notebook file formats. `IPython.nbformat` shouldn't be a dependency, in other words. Just write `contents` to the file and keep it simple.