diff --git a/nbconvert/exporters/webpdf.py b/nbconvert/exporters/webpdf.py index fe7f48984..c872f90bc 100644 --- a/nbconvert/exporters/webpdf.py +++ b/nbconvert/exporters/webpdf.py @@ -38,7 +38,7 @@ def run_pyppeteer(self, html): async def main(): browser = await self._check_launch_reqs()() page = await browser.newPage() - await page.goto('data:text/html,'+html, waitUntil='networkidle0') + await page.goto('data:text/html,'+html, waitUntil='networkidle2') pdf_data = await page.pdf() await browser.close() return pdf_data