29

I tried downloading a Jupyter Notebook as pdf by clicking on File -> Download as -> Pdf via pyppeteer. I get the below error while doing so:

nbconvert failed: No suitable chromium executable found on the system. Please use '--allow-chromium-download' to allow downloading one.

I had installed pyppeteer using command conda install -c conda-forge pyppeteer . Now I am trying to download the pdf via Jupyter GUI but it fails.

How can I do that ? And do I need to run some Command on anaconda terminal to do it?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Invictus
  • 4,028
  • 10
  • 50
  • 80

3 Answers3

47

Try in your terminal this command using your notebook:

jupyter nbconvert --to webpdf --allow-chromium-download Untitled.ipynb

where "Untitled.ipynb" is the name of your notebook.

this should download chromium

Juan Costamagna
  • 591
  • 4
  • 6
  • 4
    + You should run from inside notebook's directory + "Untitled" is the name of your notebook + After manually downloading chromium once, you can download as pdf from Jupyter – Eliy Arlev Aug 16 '21 at 20:55
25

Above issue can be fixed by installing the missing package

  1. open the anaconda terminal enter image description here
  2. Type the command pyppeteer-install in the terminal. This will download and install an appropriate version of chromium.

enter image description here

CostaIvo
  • 1,029
  • 13
  • 19
Marinko
  • 251
  • 2
  • 2
-3

try this:

pip install jinja2==3.0.3

this should install jinja and fix the problem

desertnaut
  • 57,590
  • 26
  • 140
  • 166
Abhi
  • 27
  • 5