nbconvert use '--allow-chromium-download'

Viewed 29842

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?

3 Answers

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

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

try this:

pip install jinja2==3.0.3

this should install jinja and fix the problem

Related