From 0b6114dcf18c5c3083037d521719c4f20053fed0 Mon Sep 17 00:00:00 2001 From: Andrew Pikul Date: Tue, 22 Oct 2024 11:26:14 -0400 Subject: [PATCH] Set headless=True --- src/py/kaleido/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/py/kaleido/__init__.py b/src/py/kaleido/__init__.py index f7fb46e..acad5a8 100644 --- a/src/py/kaleido/__init__.py +++ b/src/py/kaleido/__init__.py @@ -27,7 +27,7 @@ def to_image_block(spec, f=None, topojson=None, mapbox_token=None): return asyncio.run(to_image(spec, f, topojson, mapbox_token)) async def to_image(spec, f=None, topojson=None, mapbox_token=None): - async with Browser(headless=False) as browser: + async with Browser(headless=True) as browser: if not f: f = script_path.absolute() tab = await browser.create_tab(f.as_uri())