Page 1 of 1

structure visualization in py4vasp

Posted: Mon May 22, 2023 5:30 am
by katsuaki_tanabe1
Dear VASP users,

I am running VASP 6.3.2 on Ubuntu 22.04.1.
In carrying out the tutorial: 5.3 Calculation in tutorials/latest/molecules/part2/
for the part:
import py4vasp
my_calc = py4vasp.Calculation.from_path("./e05_CO-bond")
my_calc.structure[:].plot(),
as I input these codes on Anaconda Powershell Prompt, with an expectation to see a structure view,
I only obtained a message:
<py4vasp._data.viewer3d.Viewer3d object at 0x0000024FFDB8D5D0>

Could anybody let me know what to do to display a view?

Thanks,
-Katsuaki

Re: structure visualization in py4vasp

Posted: Mon May 22, 2023 10:21 am
by martin.schlipf
The structure viewer needs a browser to work. Either run the same code in a Jupyter notebook or use ipython instead of python.

Re: structure visualization in py4vasp

Posted: Tue May 23, 2023 6:03 am
by katsuaki_tanabe1
Thank you Martin! By using Jupyter Notebook, the structure view has successfully been displayed. -Katsuaki