Skip to content

Commit

Permalink
fixes windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
edublancas committed Apr 22, 2022
1 parent 78c3bc3 commit 7e4d7f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ploomber/dag/plot.py
Expand Up @@ -67,7 +67,6 @@ def embedded_html(path):
import asyncio
import nest_asyncio
nest_asyncio.apply()

return asyncio.get_event_loop().run_until_complete(
_embedded_html(path=path))

Expand All @@ -80,5 +79,6 @@ async def _embedded_html(path):
session = AsyncHTMLSession()
html = HTML_(html=Path(path).read_text(), session=session)
await html.arender()
session.close()
# ensure we close the session, otherwise this will fail on windows
await session.close()
return HTML(data=html.html)

0 comments on commit 7e4d7f2

Please sign in to comment.