Skip to content
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

Problem with WebPDF in a conda environment #2139

Open
jsdodge opened this issue Apr 19, 2024 · 0 comments
Open

Problem with WebPDF in a conda environment #2139

jsdodge opened this issue Apr 19, 2024 · 0 comments

Comments

@jsdodge
Copy link

jsdodge commented Apr 19, 2024

Hello,

I tried using both the command line and the Jupyter menu to export a notebook as a WebPDF and encountered errors in both cases. The web interface returned a 500 error and told me to install nbconvert[webpdf], which I did. The problems continued, but after looking into it I discovered that I needed to install playwright, also.

I am using a conda environment, originally with just the conda-forge and the defaults channels. I discovered that playwright is not available on either channel, so I added the Microsoft channel. Then, the command-line version of nbconvert returned the error message, RuntimeError: No suitable chromium executable found on the system. Please use '--allow-chromium-download' to allow downloading one,or install it using `playwright install chromium`. Finally, I added that flag, running nbconvert again downloaded chromium, and now I am able to export to WebPDF using both the command line and the Jupyter menu commands.

Is this anomalous behavior? Is a fix available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant