From f3b4b7655bd57460fa697733ffde610e4ffd8b6b 2014-11-01 23:41:11 From: MinRK Date: 2014-11-01 23:41:11 Subject: [PATCH] deprecation warning on nbformat.current --- diff --git a/IPython/nbformat/current.py b/IPython/nbformat/current.py index 2f5f832..bf4adb7 100644 --- a/IPython/nbformat/current.py +++ b/IPython/nbformat/current.py @@ -1,4 +1,8 @@ -"""The official API for working with notebooks in the current format version.""" +"""Deprecated API for working with notebooks + +- use IPython.nbformat for read/write/validate public API +- use IPython.nbformat.vX directly for Python API for composing notebooks +""" # Copyright (c) IPython Development Team. # Distributed under the terms of the Modified BSD License. @@ -8,6 +12,12 @@ from __future__ import print_function import re import warnings +warnings.warn("""IPython.nbformat.current is deprecated. + +- use IPython.nbformat for read/write/validate public API +- use IPython.nbformat.vX directly to composing notebooks of a particular version +""") + from IPython.nbformat.v3 import ( NotebookNode, new_code_cell, new_text_cell, new_notebook, new_output, new_worksheet,