##// END OF EJS Templates
Fix copyright on clearoutput.py
Julia Evans -
Show More
@@ -1,32 +1,27 b''
1 1 """Module containing a preprocessor that removes the outputs from code cells"""
2 2
3 #-----------------------------------------------------------------------------
4 # Copyright (c) 2013, the IPython Development Team.
5 #
3 # Copyright (c) IPython Development Team.
6 4 # Distributed under the terms of the Modified BSD License.
7 #
8 # The full license is in the file COPYING.txt, distributed with this software.
9 #-----------------------------------------------------------------------------
10 5
11 6 #-----------------------------------------------------------------------------
12 7 # Imports
13 8 #-----------------------------------------------------------------------------
14 9
15 10 from .base import Preprocessor
16 11
17 12
18 13 #-----------------------------------------------------------------------------
19 14 # Classes
20 15 #-----------------------------------------------------------------------------
21 16 class ClearOutputPreprocessor(Preprocessor):
22 17 """
23 18 Removes the output from all code cells in a notebook.
24 19 """
25 20
26 21 def preprocess_cell(self, cell, resources, cell_index):
27 22 """
28 23 Apply a transformation on each cell. See base.py for details.
29 24 """
30 25 if cell.cell_type == 'code':
31 26 cell.outputs = []
32 27 return cell, resources
General Comments 0
You need to be logged in to leave comments. Login now