convert.py 741 B

12345678910111213141516171819
  1. """Convert notebook to the v1 format."""
  2. # -----------------------------------------------------------------------------
  3. # Copyright (C) 2008-2011 The IPython Development Team
  4. #
  5. # Distributed under the terms of the BSD License. The full license is in
  6. # the file LICENSE, distributed as part of this software.
  7. # -----------------------------------------------------------------------------
  8. # -----------------------------------------------------------------------------
  9. # Code
  10. # -----------------------------------------------------------------------------
  11. from __future__ import annotations
  12. def upgrade(nb, orig_version=None):
  13. """Upgrade a notebook."""
  14. msg = "Cannot convert to v1 notebook format"
  15. raise ValueError(msg)