Skip to content

Commit

Permalink
Merge pull request ipython#66 from Carreau/fix-exclude
Browse files Browse the repository at this point in the history
restore exclude flag
  • Loading branch information
Carreau committed Dec 19, 2012
2 parents fdde864 + 2709a97 commit 4553570
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion converters/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,10 @@ class Converter(object):
user_preamble = None
raw_as_verbatim = False

def __init__(self, infile, highlight_source=True):
def __init__(self, infile, highlight_source=True, exclude=[]):
# N.B. Initialized in the same order as defined above. Please try to
# keep in this way for readability's sake.
self.exclude_cells = exclude
self.infile = infile
self.highlight_source = highlight_source
self.infile_dir, infile_root = os.path.split(infile)
Expand Down
2 changes: 1 addition & 1 deletion nbconvert.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def main(infile, format='rst', preamble=None, exclude=None,
raise SystemExit("Unknown format '%s', " % format +
"known formats are: " + known_formats)

converter = ConverterClass(infile, highlight_source=highlight_source)
converter = ConverterClass(infile, highlight_source=highlight_source, exclude=exclude)
converter.render()

#-----------------------------------------------------------------------------
Expand Down

0 comments on commit 4553570

Please sign in to comment.