I am doing some end of the year cleaning on my hard drive and just uploaded the Jupyter Notebook I used in the analysis of a mobile phone lying still earlier this year.

For some future studies, I thought it would be interesting to explore the PDF export functionality from Jupyter. That worked very well except for that I didn’t get any title or author name on top:

Jupyter heading

Then I found a solution on Stack Overflow. The trick is to add this blurb to the metadata of the file:

,    
"title": "My Title!",    
"authors": [    
  { "name": "Author2" }    
]    

This can be done from Edit > Edit Notebook metadata, and add the blurb like this:

edit metadata

The result is a PDF file with title and author added.

Jupyter heading