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
structure visualization in py4vasp
Moderators: Global Moderator, Moderator
-
- Newbie
- Posts: 10
- Joined: Thu Feb 02, 2023 3:30 am
structure visualization in py4vasp
You do not have the required permissions to view the files attached to this post.
-
- Global Moderator
- Posts: 542
- Joined: Fri Nov 08, 2019 7:18 am
Re: structure visualization in py4vasp
The structure viewer needs a browser to work. Either run the same code in a Jupyter notebook or use ipython instead of python.
Martin Schlipf
VASP developer
-
- Newbie
- Posts: 10
- Joined: Thu Feb 02, 2023 3:30 am
Re: structure visualization in py4vasp
Thank you Martin! By using Jupyter Notebook, the structure view has successfully been displayed. -Katsuaki