--------------------------------------------------------------------------- ImportError…
- User
ImportError Traceback (most recent call last) in <cell line: 2>() 1 from ase.io import read ----> 2 from ase.neb import plot_band 3 4 # Read the NEB trajectory 5 images = read('neb.traj@0:') # Read all images from the trajectory file
ImportError: cannot import name 'plot_band' from 'ase.neb' (/usr/local/lib/python3.10/site-packages/ase/neb.py)
- Assistant
It looks like you're encountering an ImportError because the
plot_bandfunction is not located in the module. Instead, it resides in the module. To fix this issue, you should change your import statement accordingly.