Skip to content

Commit

Permalink
Merge pull request #1474 from pyiron/delayed_nglview
Browse files Browse the repository at this point in the history
Delay NGLview import
  • Loading branch information
jan-janssen committed Jul 1, 2024
2 parents c09868a + 6bc06e8 commit fe156a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyiron_atomistics/atomistics/structure/atoms.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
ase_to_pymatgen,
pymatgen_to_ase,
)
from structuretoolkit.visualize import plot3d
from pyiron_atomistics.atomistics.structure.atom import (
Atom,
ase_to_pyiron as ase_to_pyiron_atom,
Expand Down Expand Up @@ -1202,6 +1201,8 @@ def plot3d(
* Many features only work with space-filling atoms (e.g. coloring by a scalar field).
* The colour interpretation of some hex codes is weird, e.g. 'green'.
"""
from structuretoolkit.visualize import plot3d

return plot3d(
structure=pyiron_to_ase(self),
mode=mode,
Expand Down

0 comments on commit fe156a8

Please sign in to comment.