- Thank you received: 0
in python3 draw() function displays no graphic window
1 year 8 months ago - 1 year 8 months ago #4778
by h.sterner
in python3 draw() function displays no graphic window was created by h.sterner
Hi erverybody
I am new in Netgen/NGSolve. My first step was running the poisson.py example, but no graphic will be displayed.
The script simply ends without any error messege.
I use ubuntu 22.10 and python3. The installation runs without any error message. I also installed jupyter-notebook and extensions accordin the install instruchtions
can anyone help me?
I am new in Netgen/NGSolve. My first step was running the poisson.py example, but no graphic will be displayed.
The script simply ends without any error messege.
I use ubuntu 22.10 and python3. The installation runs without any error message. I also installed jupyter-notebook and extensions accordin the install instruchtions
can anyone help me?
Last edit: 1 year 8 months ago by h.sterner.
- christopher
- Offline
- Administrator
Less
More
- Thank you received: 101
1 year 7 months ago - 1 year 7 months ago #4789
by christopher
Replied by christopher on topic in python3 draw() function displays no graphic window
Try running the script either with the installed netgen executable or with
Code:
python -m netgen poisson.py
Last edit: 1 year 7 months ago by christopher.
1 year 7 months ago - 1 year 7 months ago #4808
by h.sterner
Replied by h.sterner on topic in python3 draw() function displays no graphic window
Hello Christopher
Thank you for your helpful hint
variant “netgen poisson.py” works
variant “python3 -m netgen poisson.py” works too
But with jupyter-notebook the Draw() function works also
The problem occurs only in pure python3
Actually, I have no problem with tat, I simply use the -m netgen variantmany Thanks
Hermann
Thank you for your helpful hint
variant “netgen poisson.py” works
variant “python3 -m netgen poisson.py” works too
But with jupyter-notebook the Draw() function works also
The problem occurs only in pure python3
Actually, I have no problem with tat, I simply use the -m netgen variantmany Thanks
Hermann
Last edit: 1 year 7 months ago by h.sterner.
1 year 7 months ago #4809
by joachim
Replied by joachim on topic in python3 draw() function displays no graphic window
alternatively, you can add
import netgen.gui
into the python file, and something like
input("press return key")
at the end.
Joachim
import netgen.gui
into the python file, and something like
input("press return key")
at the end.
Joachim
Time to create page: 0.133 seconds