0

I am very new to Jupyter Notebook so I might have missed the obvious, please point me in the right direction (it may also be JN is not the right tool for the task).

I am preparing a piece of documentation which is composed by Some narrative text (in Markdown format) interspersed with images produced using various tools.

I have a tentative Notebook showing what I need.

I can also export in PDF format either from command line or from menu.

Problem is the exported pages include both "cell content" and actual output, together with all In [xx] and Out [yy] flags and everything Jupyter finds fit to add (e.g.: warnings), while I would like to have "shrink wrapped" documentation containing only the "Out" parts, without any "decoration".

I assume it should be possible, but I couldn't find out how.

ZioByte
  • 2,690
  • 1
  • 32
  • 68
  • See [here](https://stackoverflow.com/a/58524517/8508004) and [here](https://discourse.jupyter.org/t/generating-reports-for-jupyter-notebooks/279/22). Or [here](https://discourse.jupyter.org/t/how-to-output-both-notebook-with-output-cell-and-html-without-running-twice/4749/2?u=fomightez) and combine it with saving as PDF instead of HTML, like second code block shown [here](https://stackoverflow.com/a/45029786/8508004). You run those types of code in a terminal with a working directory where the notebook file is. – Wayne May 10 '23 at 13:05

1 Answers1

0

I made some comments if you did want to use the notebooks you have and just not have the input code cells show up and still get a pdf the traditional way.

I think though in regards to your statement, "it may also be JN is not the right tool for the task":

That may or may not be the case.
However, I'd suggest you may want to add additional tools to your toolbox that handle the steps in conjunction with the notebooks.
You may want to incorporate MyST-tools / JupyterBooks or Quarto into your flow for 'shrink-wrapping'.

For some current stuff on MyST (MyST-tools), see:

Some current stuff on Quarto:

  • slides for 'Publishing Jupyter Notebooks with Quarto' at JupyterCon 2023 are here
Wayne
  • 6,607
  • 8
  • 36
  • 93