Forum Message

 

 

We have moved the forum to https://forum.ngsolve.org . This is an archived version of the topics until 05/05/23. All the topics were moved to the new forum and conversations can be continued there. This forum is just kept as legacy to not invalidate old links. If you want to continue a conversation just look for the topic in the new forum.

Notice

The forum is in read only mode.

ImportError: cannot import name 'unit_square' from netgen.occ

More
1 year 11 months ago #4370 by mppavan
Hi,

I'm trying to run boundary_conditions.ipynb given in iTutorials on my jupyter notebook. I get an error while importing unit_square from netgen.occ module (image attached).

So, I've tried to replace the "netgen.occ" with "netgen.geom2d" to import unit_square. The code didn't throw an error but while visualizing the "gfu" on web gui it is having some rendering issues (image attached). Can anyone please let me know if this is issue with my unit_square import or it has to do with any other import I have. I'm using the exact code what the tutorial provided. and installed ngsolve from the given download instructions.
Time to create page: 0.159 seconds