Problem with Draw function, large scale.

  • horep
  • New Member
  • New Member
More
1 year 7 months ago #4741 by horep
Hi,

When trying to run the tutorials within VSCODE, the draw function yields a window where the scale is massive, and seems to have some sort of colour bar obscuring everything. I have tried searching for relevant posts, and have found this post which seems to have the exact same problem ngsolve.org/forum/ngspy-forum/1729-problem-with-draw however when trying to navigate to it from Google, I get a 403 error. On Google I see "I tried the following: - with VScode using an interactive window, but in this case I obtain an image with a very large scale and it's impossible ..." which is my exact problem.

It is frustrating that I cannot read the answers (if any) to this. I have attached a screenshot of the output from the Draw portion of the poisson.ipynb file. I am able to interact with the window, such as scrolling and moving around, but it is very hard to use, and the bar remains obscuring everything throughout.

I have Python 3.7.9, and used the windows installer (6.2.2301-win64.msi).

More
1 year 7 months ago #4744 by NGUnsolved
Hello,
I had the same problem trying to use the Draw function in Jupyter notebooks directly.
You can open an external window with "import netgen.gui" and there it works fine. They also did this in the youtube tutorials.
More workaround than solution but at least you can see stuff.
- NGUnsolved
More
1 year 7 months ago #4752 by christopher
In vscode I guess it is possible that the webgui is not yet working correctly. In jupyter notebook in the browser it should work. What browser/operating system are you working on? Does it also happen in other browsers?
More
1 year 7 months ago #4753 by NGUnsolved
You are right. The problem seems to be VSCode. It works fine in the browser (linux).
  • horep
  • New Member
  • New Member
More
1 year 7 months ago #4759 by horep
Hi,

Sorry for the late reply, I was having trouble logging in as the reset password function on this forum doesn't seem to work :)

Using Jupyter notebook (Firefox, windows 10) is a workaround. Obviously not ideal since then you don't get the useful features of working in VSCode. Using

import netgen.gui

as a replacement worked perfectly for me within VSCode.
More
1 year 7 months ago #4760 by nils.ansorge@eagleburgmann.com
I have similar problems on a windows machine. It would be great if the webgui could be fixed for vscode.
Time to create page: 0.114 seconds