-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathchess_zip.html
65 lines (50 loc) · 1.74 KB
/
chess_zip.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<html>
<head>
<title>Panel Example</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.4.3.js" ></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-widgets-2.4.3.min.js" ></script>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-tables-2.4.3.min.js" ></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@holoviz/[email protected]/dist/panel.min.js" ></script>
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
<script defer src="https://pyscript.net/releases/2023.03.1/pyscript.js"></script>
</head>
<body>
<!-- # ////////////////////////////////////////////////////////////////// / -->
<py-config>
terminal = false
packages=[
"numpy",
"pandas",
"requests",
"xmltodict",
"xyzservices",
"pyodide-http",
"colorcet",
"panel==0.14.4",
"https://cdn.holoviz.org/panel/0.14.3/dist/wheels/bokeh-2.4.3-py3-none-any.whl",
"openvisuspy==0.0.20",
]
</py-config>
<!-- where the app is displayed-->
<div id="my_app"></div>
<!-- # ////////////////////////////////////////////////////////////////// / -->
<py-script>
import os,sys,datetime,logging,time,pyodide_http
from openvisuspy import *
SetupLogger()
pyodide_http.patch_all()
import panel as pn
pn.extension(sizing_mode='stretch_both')
url="https://atlantis.sci.utah.edu/mod_visus?dataset=chess-zip"
view=Slices()
view.setDataset(url)
view.setPalette("Viridis256")
view.setPaletteRange([-0.017141795,0.012004322])
main_layout=view.getPanelLayout()
app=GetPanelApp(main_layout)
app.servable(target='my_app')
</py-script>
<!-- <py-terminal/> -->
<!-- <py-repl/> -->
</body>
</html>