Pedro H. N. Vieira
Pedro H. N. Vieira

Reputation: 748

Can nbconvert join the output of multiple files?

I have a bunch of ipython notebooks (.ipynb) that I want to convert to PDF.

I can use the following command to convert all the notebooks in a given directory.

jupyter nbconvert --to pdf *.ipynb

I was then wondering if I could output all the nbconverts to a single PDF, as if it was a book. What is the option to have a single output file? I could not find an answer in the docs.

Upvotes: 2

Views: 850

Answers (1)

Simon Hobbs
Simon Hobbs

Reputation: 1010

nbconvert does not have a function to do that which I could find. There are other projects that are designed to do this. The ones I could find are:

  • bookbook: This is simple and does what you're talking about
  • jupyter-book: Many more features, allowing combining notebooks, markdown, and a few other things.
  • nbmerge: Really basic, combines several command line passed files into a single notebook that can then be exported using nbconvert.

Upvotes: 1

Related Questions