From 50e51cd68dae6d7632aacdc0ad5bc28e55b2dc15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20H=C3=B8xbro=20Hansen?= Date: Tue, 5 Dec 2023 13:43:33 +0100 Subject: [PATCH] Add extra check to detect if we are in jupyterlite (#6007) --- holoviews/pyodide.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/holoviews/pyodide.py b/holoviews/pyodide.py index dfb1b7b56b..493f0c19ee 100644 --- a/holoviews/pyodide.py +++ b/holoviews/pyodide.py @@ -77,7 +77,7 @@ def render_svg(element): def in_jupyterlite(): import js - return hasattr(js, "_JUPYTERLAB") + return hasattr(js, "_JUPYTERLAB") or hasattr(js, "webpackChunk_jupyterlite_pyodide_kernel_extension") or not hasattr(js, "document") #----------------------------------------------------------------------------- # Public API