webgui

1 month 3 days ago #2837 by joachim
Hello NGSolve-Community,

we can now visualize meshes and solutions within jupyter notebooks !

Have a look at
ngsolve.org/docu/nightly/i-tutorials/wta/poisson.html
and the other whetting-the-appetite examples.

webgui is available in the NGSolve 20.05 release, and there are frequent updates and fixes in the nightly versions.

The main activists have been Matthias and Amanda, many thanks to them !

webgui already supports visualization of higher order scalar and vectorial fields, clipping planes, and animation of time-dependent and complex valued solutions.

With webgui you can run the IPython kernel on a server, and visualize locally within your jupyter session. It is also the basis for interactive computing in a cloud. With nbconvert you can generate html pages including interactive views for tutorials and presentation of your results.

webgui is based on webgl, threejs, and jupyter notebook extension.

Try it and enjoy it,
Joachim
The following user(s) said Thank You: ddrake, dong

Please Log in or Create an account to join the conversation.

1 month 3 days ago #2838 by Guosheng Fu
Hi Joachim,

Can you be more specific on the prerequisites for getting webgui?

I updated ngsolve to version 2005, but the gui didn't pop up. I get the following string instead:
NGSWebGuiWidget(value={'ngsolve_version': '6.2.2005-14-g40518403', 'mesh_dim': 2, 'order2d': 1, 'order3d': 1, …

You mentioned "webgui is based on webgl, threejs, and jupyter notebook extension."
I have threejs install via pip, but how to get webgl?

Best,
Guosheng

Please Log in or Create an account to join the conversation.

1 month 3 days ago #2840 by dong
Thank you for the great news.

Please Log in or Create an account to join the conversation.

1 month 3 days ago #2841 by joachim
you have to install the notebook extension like that:
pip3 install ipywidgets
jupyter nbextension install --py widgetsnbextension
jupyter nbextension enable --py widgetsnbextension
jupyter nbextension install --user --py ngsolve
jupyter nbextension enable --user --py ngsolve
Just started the upload of the updated documentation.

Joachim

Please Log in or Create an account to join the conversation.

1 month 3 days ago #2842 by Guosheng Fu
Works like a charm!
Thanks for this great adds-on. :)

Please Log in or Create an account to join the conversation.

1 month 2 days ago #2843 by Guosheng Fu
Hello again,

Webgui is amazing. But I encounter a couple of questions:

Q1: How to modify default parameters in webgui? For netgen gui we have all the options in ngsolve.internal import visoptions, viewoptions to play with...

Q2: can you fix a bug for quads mesh? currently, the quad mesh only present a triangle instead of square for the element...

Best,
Guosheng

Please Log in or Create an account to join the conversation.

© 2019 Netgen/NGSolve