##// END OF EJS Templates
Merge pull request #3748 from wolever/update-nbconvert-docs...
Min RK -
r11646:bab64eb1 merge
parent child Browse files
Show More
@@ -539,17 +539,23 b' The currently supported export formats are the following:'
539 539 Comments out all the non-Python code to produce a ``.py`` Python
540 540 script with just the code content. Currently the output includes IPython magics, and so can be run with ``ipython``, after changing the extension of the script to ``.ipy``.
541 541
542 The files output by ``nbconvert`` are all placed in a new subdirectory
543 called ``nbconvert_build``.
542 The files output file created by ``nbconvert`` will have the same base name as
543 the notebook and will be placed in the current working directory. Any
544 supporting files (graphics, etc) will be placed in a new directory with the
545 same base name as the notebook, suffixed with ``_files``::
546
547 $ ipython nbconvert notebook.ipynb
548 $ ls
549 notebook.ipynb notebook.html notebook_files/
544 550
545 551 Each of the options for PDF export produces as an intermediate step a LaTeX
546 552 ``.tex`` file with the same basename as the notebook, as well as individual
547 files for each figure, and ``.text` files with textual output from running
553 files for each figure, and ``.text`` files with textual output from running
548 554 code cells.
549 555
550 556 To actually produce the final PDF file, run the following commands::
551 557
552 $ cd nbconvert_build
558 $ ipython nbconvert --format=latex notebook.ipynb
553 559 $ pdflatex notebook
554 560
555 561 This requires a local installation of LaTeX on your machine.
@@ -557,7 +563,7 b' The output is a PDF file ``notebook.pdf``, also placed inside the ``nbconvert_bu'
557 563
558 564 Alternatively, the output may be sent to standard output with::
559 565
560 $ ipython nbconvert mynotebook.ipynb --stdout
566 $ ipython nbconvert notebook.ipynb --stdout
561 567
562 568 Multiple notebooks can be specified from the command line::
563 569
General Comments 0
You need to be logged in to leave comments. Login now