瀏覽代碼

ActivatableTransformer -> Transformer

Jake Vanderplas 11 年之前
父節點
當前提交
2ad2132261
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      liquid_tags/notebook.py

+ 2 - 2
liquid_tags/notebook.py

@@ -60,7 +60,7 @@ from IPython.nbconvert.exporters import BasicHTMLExporter
 from IPython.config import Config
 from IPython.config import Config
 
 
 from IPython.nbformat import current as nbformat
 from IPython.nbformat import current as nbformat
-from IPython.nbconvert.transformers import ActivatableTransformer
+from IPython.nbconvert.transformers import Transformer
 
 
 from IPython.utils.traitlets import Integer
 from IPython.utils.traitlets import Integer
 from copy import deepcopy
 from copy import deepcopy
@@ -155,7 +155,7 @@ class SliceIndex(Integer):
             return super(SliceIndex, self).validate(obj, value)
             return super(SliceIndex, self).validate(obj, value)
 
 
 
 
-class SubCell(ActivatableTransformer):
+class SubCell(Transformer):
     """A transformer to select a slice of the cells of a notebook"""
     """A transformer to select a slice of the cells of a notebook"""
     start = SliceIndex(0, config=True,
     start = SliceIndex(0, config=True,
                        help="first cell of notebook to be converted")
                        help="first cell of notebook to be converted")