Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbformat/v1/convert.py: 33%
3 statements
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-03 06:10 +0000
« prev ^ index » next coverage.py v7.2.7, created at 2023-06-03 06:10 +0000
1"""Convert notebook to the v1 format."""
3# -----------------------------------------------------------------------------
4# Copyright (C) 2008-2011 The IPython Development Team
5#
6# Distributed under the terms of the BSD License. The full license is in
7# the file LICENSE, distributed as part of this software.
8# -----------------------------------------------------------------------------
10# -----------------------------------------------------------------------------
11# Code
12# -----------------------------------------------------------------------------
15def upgrade(nb, orig_version=None):
16 """Upgrade a notebook."""
17 msg = "Cannot convert to v1 notebook format"
18 raise ValueError(msg)