From 30e10449205763363fe8663765645796b0dc8fd5 2014-09-16 23:25:37 From: Jessica B. Hamrick Date: 2014-09-16 23:25:37 Subject: [PATCH] Use cell.prompt_number rather than cell['prompt_number'] --- diff --git a/IPython/nbconvert/preprocessors/clearoutput.py b/IPython/nbconvert/preprocessors/clearoutput.py index 61bad66..61c4b7f 100644 --- a/IPython/nbconvert/preprocessors/clearoutput.py +++ b/IPython/nbconvert/preprocessors/clearoutput.py @@ -24,5 +24,5 @@ class ClearOutputPreprocessor(Preprocessor): """ if cell.cell_type == 'code': cell.outputs = [] - cell['prompt_number'] = None + cell.prompt_number = None return cell, resources