def __init__(self, infile, outfile, disable_warnings=True,<EOL>preprocess=True, clear=True, code_example=None,<EOL>supplementary_files=None, other_supplementary_files=None,<EOL>thumbnail_figure=None, url=None, insert_bokeh=False,<EOL>insert_bokeh_widgets=False, tag_options={}):
self.infile = infile<EOL>self.outfile = outfile<EOL>self.preprocess = preprocess<EOL>self.clear = clear<EOL>self._code_example = code_example<EOL>self._supplementary_files = supplementary_files<EOL>self._other_supplementary_files = other_supplementary_files<EOL>self._thumbnail_figure = thumbnail_figure<EOL>self._url = url<EOL>self.insert_bokeh = insert_bokeh<EOL>self.insert_bokeh_widgets = insert_bokeh_widgets<EOL>self.tag_options = tag_options<EOL>self.process_notebook(disable_warnings)<EOL>self.create_thumb()<EOL>
Parameters
----------
infile: str
    path to the existing notebook
outfile: str
    path to the new notebook
disable_warnings: bool
    Boolean to control whether warnings shall be included in the rst
    file or not
preprocess: bool
    If True, the notebook is processed when generating the rst file
clear: bool
    If True, the output in the download notebook is cleared
code_example: str
    A python code sample that shall be used instead of a thumbnail
    figure in the gallery. Note that you can also include a
    ``'code_example'`` key in the metadata of the notebook
supplementary_files: list of str
    Supplementary data files that shall be copied to the output
    directory and inserted in the rst file for download
other_supplementary_files: list of str
    Other supplementary data files that shall be copied but not
    inserted for download
thumbnail_figure: int
    The number of the figure that shall be used for download or a path
    to a file
url: str
    The url where to download the notebook
insert_bokeh: False or str
    The version string for bokeh to use for the style sheet
insert_bokeh_widgets: bool or str
    The version string for bokeh to use for the widgets style sheet
tag_options: dict
    A dictionary with traitlets for the
    :class:`nbconvert.preprocessors.TagRemovePreprocessor`