File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
crystal_toolkit/apps/examples Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1- #%%
1+ # %%
22from __future__ import annotations
33
44import dash
55from dash import html
6- from pymatgen .core import Lattice , Structure
7-
8- import crystal_toolkit
9- import crystal_toolkit .components as ctc
10- from crystal_toolkit .settings import SETTINGS
116from dash_mp_components import CrystalToolkitScene
127from pymatgen .io .vasp import Chgcar
138
9+ import crystal_toolkit .components as ctc
10+ from crystal_toolkit .settings import SETTINGS
1411
1512app = dash .Dash (assets_folder = SETTINGS .ASSETS_PATH )
1613
1714chgcar = Chgcar .from_file ("../../../tests/test_files/chgcar.vasp" )
1815scene = chgcar .get_scene (isolvl = 0.0001 )
1916
2017layout = html .Div (
21- [CrystalToolkitScene (data = scene .to_json ())],
22- style = {"width" : "100px" , "height" : "100px" },
23- )
24- #%%
18+ [CrystalToolkitScene (data = scene .to_json ())],
19+ style = {"width" : "100px" , "height" : "100px" },
20+ )
21+ # %%
2522# as explained in "preamble" section in documentation
2623ctc .register_crystal_toolkit (app = app , layout = layout )
2724
You can’t perform that action at this time.
0 commit comments