Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/nbformat/v1/convert.py: 50%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

4 statements  

1"""Convert notebook to the v1 format.""" 

2 

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# ----------------------------------------------------------------------------- 

9 

10# ----------------------------------------------------------------------------- 

11# Code 

12# ----------------------------------------------------------------------------- 

13from __future__ import annotations 

14 

15 

16def upgrade(nb, orig_version=None): 

17 """Upgrade a notebook.""" 

18 msg = "Cannot convert to v1 notebook format" 

19 raise ValueError(msg)