Open tuheihei opened 9 months ago
Do you execute the code in a Jupyter notebook? Visualizing the structure requires a browser window.
Do you execute the code in a Jupyter Notebook? Visualizing the structure requires a browser window.
Thanks for the quick follow-up. Yes, the code was run in a Jupyter Notebook on a m1 MacBook. Other functions, including "dos.plot()" and "structure.print()", worked, while that of "structure.plot" malfunctioned, it read "NGLWidget()" or, sometimes, "NGLWidget(max_frame = 499). Any advice would be greatly appreciated.
Can you try
import nglview
nglview.demo()
to see whether the issue is with NGL or the py4vasp wrapper?
Can you try
import nglview nglview.demo()
to see whether the issue is with NGL or the py4vasp wrapper? It returns"NGLWidget()" The issue indeed seems to be relative to NGL. So what can I do to fix this? Thanks
Okay, I will suggest a couple of more things you can try but if none of them work, I would suggest to post this in the nglview Github page.
Hi, When I use the
calculation.structure.plot
to plot the CONTCAR or POSCAR, it gives out NGLWidget() but not a 3D view of a structure. Any help would be appreciated. Yi