New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nbconvert hangs indefinitely when trying to use webpdf export on Linux #1834
Comments
I also have this issue on Opensuse Tumbleweed (not a vm), with a pip install of nbconvert. Python version is 3.10.6. I let it run for about 30 minutes before cancelling. It hangs on the "[NbConvertApp] Building PDF" step.
|
I have tried this outside a virtual machine now (Ubuntu 22.04 derivate) and have several students report the same issue. It seems to be an issue with sandbox mode and disabling it fixes the export. I am not sure if this currently affect all Linuxes but it seems worthwhile considering disabling sandbox mode by default on Linux, so that it is possible to use webexport without issues. In the meantime, this command disables the sandbox mode for both command line and graphical exports:
Related issues and comments: |
Thanks! Worked like a charm for me. |
For me after using the above fix it still freezes in the web interface but I can convert successfully in command line with For some reason there are two identical entries "Download as PDF via html (.html)" entry in the webui (both freezes, one even stops the jupyter process to receive Kill) |
nbconvert hangs indefinitely when trying to use webpdf export on Linux (in a vm).
I tried installing both via
pip install nbconvert[webpdf]
and then run the export command with--allow-chromium-download
. Then I triedconda install pyppeteer
+pyppeteer-install
, the freeze happens in both cases. HTML export works fine. The version of pyppeteer is 1.0.2 in both cases and I am using Python 3.10.4.Minimal notebook to reproduce:
Untitled3.txt
Out put from the command:
(base) joel@ubuntu2204:~$ jupyter nbconvert Untitled3.ipynb --to webpdf --debug --allow-chromium-download
:Nbconvert version:
The text was updated successfully, but these errors were encountered: