##// 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 Comments out all the non-Python code to produce a ``.py`` Python
539 Comments out all the non-Python code to produce a ``.py`` Python
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``.
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
542 The files output file created by ``nbconvert`` will have the same base name as
543 called ``nbconvert_build``.
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 Each of the options for PDF export produces as an intermediate step a LaTeX
551 Each of the options for PDF export produces as an intermediate step a LaTeX
546 ``.tex`` file with the same basename as the notebook, as well as individual
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 code cells.
554 code cells.
549
555
550 To actually produce the final PDF file, run the following commands::
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 $ pdflatex notebook
559 $ pdflatex notebook
554
560
555 This requires a local installation of LaTeX on your machine.
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 Alternatively, the output may be sent to standard output with::
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 Multiple notebooks can be specified from the command line::
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