If chosen via the UI or run via the command line, jupyter nbconvert --to webpdf will hang and CPU usage for chrome will spike to 100% if the DISPLAY environment variable is set.
From the cli, if I run unset DISPLAY prior to trying jupyter nbconvert --to webpdf everything works fine.
How to reproduce:
- create a new blank notebook named blank.ipynb (or choose an existing notebook)
- open a terminal on an OS that supports a DISPLAY environment variable
- run
export DISPLAY=":1.0"
- run
jupyter nbconvert --to webpdf blank.ipynb