Skip to content

Commit

Permalink
Add short wait time for fonts and rendering (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
SylvainCorlay authored Sep 22, 2020
1 parent d880216 commit e60e186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nbconvert/exporters/webpdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ def run_pyppeteer(self, html):
async def main():
browser = await self._check_launch_reqs()()
page = await browser.newPage()
await page.waitFor(100)
await page.goto('data:text/html,'+html, waitUntil='networkidle0')
await page.waitFor(100)

dimensions = await page.evaluate(
"""() => {
Expand Down

0 comments on commit e60e186

Please sign in to comment.