From 99b9e309363dab72a67f79f0f63e22e912ea8121 Mon Sep 17 00:00:00 2001 From: Sylvain Corlay Date: Sat, 19 Sep 2020 14:27:33 +0200 Subject: [PATCH] Loosen network idle condition --- nbconvert/exporters/webpdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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