> jupyter nbconvert notebook1.ipynb notebook2.ipynb Multiple notebooks can be given at the command line in a couple of > jupyter nbconvert myslides.ipynb -to slides -post serve You can get (and serve) a Reveal.js-powered slideshow > jupyter nbconvert mynotebook.ipynb -to pdf > jupyter nbconvert mynotebook.ipynb -stdout You can also pipe the output to stdout, rather than a file > jupyter nbconvert -to html -template basic mynotebook.ipynb YouĬan specify the flavor of the format used. > jupyter nbconvert -to latex mynotebook.ipynbīoth HTML and LaTeX support multiple output templates. You can specify the export format with `-to`. Which will convert mynotebook.ipynb to the default format (probably HTML). To see all available configurables, use `-help-all` nbformat= (NotebookExporter.nbformat_version) If a relative path is given, it must be a subdirectory of the currentĭirectory (from which the server is run). This defaults to the reveal CDN,īut can be any url pointing to a copy of reveal.js.įor speaker notes to work, this must be a relative path to a local copy of The URL prefix for reveal.js (version 3.x). reveal-prefix= (SlidesExporter.reveal_url_prefix) To recover previous default behaviour (outputting to the current Defaults to output to the directory of each output-dir= (FilesWriter.build_directory)ĭirectory to write output(s) to. Overwrite base name use for output files. PostProcessor class used to write the results of the conversion post= (NbConvertApp.postprocessor_class) Writer class used to write the results of the conversion template= (TemplateExporter.template_file) The export format to be used, either one of the built-in formats, or aĭotted object name that represents the import path for an `Exporter` class This mode is ideal for generating code-free reports.Ĭhoices: (0, 10, 20, 30, 40, 50, 'DEBUG', 'INFO', 'WARN', 'ERROR', 'CRITICAL') Relevant when converting to notebook format)Ĭlear output of current file and save in place,Įxclude input and output prompts from converted document.Įxclude input cells and output prompts from converted document. Run nbconvert in place, overwriting the existing notebook (only Write notebook output to stdout instead of files. Write the resulting notebook with default basename 'notebook.*' This flag is only relevant if '-execute' was specified, too. Set log level to logging.DEBUG (maximize logging output)Īnswer yes to any questions instead of prompting.Ĭontinue notebook execution even if one of the cells throws an error and include the error message in the cell output (the default behaviour is to abort conversion). WARNING: THE COMMANDLINE INTERFACE MAY CHANGE IN FUTURE RELEASES.Īrguments that take values are actually convenience aliases to fullĬonfigurables, whose aliases are listed on the help line. This application is used to convert notebook files (*.ipynb) to various other WARNING | pattern 'ml_kaggle-home-loan-credit-risk-model-decision-tree.ipynb' matched no files
0 Comments
Leave a Reply. |