##// END OF EJS Templates
deprecation warning on nbformat.current
MinRK -
Show More
@@ -1,4 +1,8 b''
1 """The official API for working with notebooks in the current format version."""
1 """Deprecated API for working with notebooks
2
3 - use IPython.nbformat for read/write/validate public API
4 - use IPython.nbformat.vX directly for Python API for composing notebooks
5 """
2
6
3 # Copyright (c) IPython Development Team.
7 # Copyright (c) IPython Development Team.
4 # Distributed under the terms of the Modified BSD License.
8 # Distributed under the terms of the Modified BSD License.
@@ -8,6 +12,12 b' from __future__ import print_function'
8 import re
12 import re
9 import warnings
13 import warnings
10
14
15 warnings.warn("""IPython.nbformat.current is deprecated.
16
17 - use IPython.nbformat for read/write/validate public API
18 - use IPython.nbformat.vX directly to composing notebooks of a particular version
19 """)
20
11 from IPython.nbformat.v3 import (
21 from IPython.nbformat.v3 import (
12 NotebookNode,
22 NotebookNode,
13 new_code_cell, new_text_cell, new_notebook, new_output, new_worksheet,
23 new_code_cell, new_text_cell, new_notebook, new_output, new_worksheet,
General Comments 0
You need to be logged in to leave comments. Login now