Here is the notebook that shows the warning:
https://ruoyu0088.github.io/jupyterlite/lab/index.html?path=demo%2Flibs%2Ftest_spb.ipynb
the get_environment() function check Notebook with following code:
shell = get_ipython().__class__.__name__
if shell == "ZMQInteractiveShell":
return 0 # Jupyter notebook or qtconsole
however, in JupyterLite, get_ipython().__class__ is pyodide_kernel.interpreter.Interpreter.