NordicESMhub / NEGI-Abisko-2019

Climate science at high latitudes: eScience for linking Arctic measurements and modeling
https://nordicesmhub.github.io/NEGI-Abisko-2019/
Other
5 stars 33 forks source link

Problems exporting notebook to PDF. #154

Closed JohanRaniseth closed 4 years ago

JohanRaniseth commented 4 years ago

I'm having problems exporting my notebook to PDF. I've loaded images into the notebook using html in the markdown cells but when I import it to PDF all the images disappear. Anyone know why or an easy way to fix it?

annefou commented 4 years ago

How did you proceed? One easy way (not always very nice pdf) is to print it in pdf.

JohanRaniseth commented 4 years ago

I was using this html image loading/display(in markdown) when the notebook exporting created a PDF without images: <.img src="subdirectory/MyImage.png"> Without the dot inside

Changed to this way of loading images(in code cell) which fixed the problem: from IPython.display import Image Image(filename='subdirectory/MyImage.png')