webgui

11 months 6 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.

11 months 5 days ago #2840 by dong
Thank you for the great news.

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

11 months 5 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.

11 months 5 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.

11 months 5 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.

11 months 5 days ago #2847 by matthiash
Hi Guosheng,

Q1: That's a good point. The Draw() function handles some arguments already (like min, max draw_surf, draw_vol). We still need to think about an interface to expose other settings (like camera, clipping plane etc.)

Q2: That's already work in progress and will be merged within the next days.

Best,
Matthias

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

© 2019 Netgen/NGSolve