Skip to content

Commit

Permalink
Add extra check to detect if we are in jupyterlite (#6007)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Dec 5, 2023
1 parent 7a4fc21 commit 50e51cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/pyodide.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50e51cd

Please sign in to comment.