Export WebGuiWidget to html

I would like to display the 3D representation of a simulation result using Webgui on a web page.
For this purpose I have created a Webgui 3D representation in Jupyter Lab using the following source code.

from ngsolve import *
from netgen.occ import unit_square
from ngsolve.webgui import Draw
mesh = Mesh(unit_square.GenerateMesh(maxh=0.2))
Draw (mesh);

Unfortunately I can’t convert it to HTML successfully. An export with “Save and Export Notebook As…” to HTML leads to a page with “WebGuiWidget(layout=Layout(height=‘50vh’, width=‘100%’), value={‘gui_settings’: {}, ‘ngsolve_version’: '6.2.23…” instead of the 3D representation. No errors are displayed in the web browser console.

With “jupyter nbconvert Test.ipynb --to html” I get the same result.

I would be very grateful for a hint how to export the 3D representation to HTML.

Here is the resulting HTML file.
Test (3).html (563.5 KB)

You can save a html of the webgui alone with Draw(mesh, filename=“filename.html”)