Commit 0b3d44f 1 parent 5537ae6 commit 0b3d44f Copy full SHA for 0b3d44f
File tree 1 file changed +7
-10
lines changed
crystal_toolkit/apps/examples
1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 1
- #%%
1
+ # %%
2
2
from __future__ import annotations
3
3
4
4
import dash
5
5
from 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
11
6
from dash_mp_components import CrystalToolkitScene
12
7
from pymatgen .io .vasp import Chgcar
13
8
9
+ import crystal_toolkit .components as ctc
10
+ from crystal_toolkit .settings import SETTINGS
14
11
15
12
app = dash .Dash (assets_folder = SETTINGS .ASSETS_PATH )
16
13
17
14
chgcar = Chgcar .from_file ("../../../tests/test_files/chgcar.vasp" )
18
15
scene = chgcar .get_scene (isolvl = 0.0001 )
19
16
20
17
layout = 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
+ # %%
25
22
# as explained in "preamble" section in documentation
26
23
ctc .register_crystal_toolkit (app = app , layout = layout )
27
24
You can’t perform that action at this time.
0 commit comments