COMPASS
5.0.0
End-to-end AO simulation tool using GPU acceleration
bokeh_guardian.py
1
"""
2
To launch it :
3
4
- locally :
5
bokeh serve --show bokeh_display.py
6
- as a server :
7
bokeh serve --port 8081 --allow-websocket-origin hippo6.obspm.fr:8081 bokeh_roket.py
8
then, open a web browser and connect to http://hippo6.obspm.fr:8081/bokeh_roket
9
"""
10
from
widget_guardian
import
Bokeh_guardian
11
from
bokeh.io
import
curdoc, output_file, show
12
import
glob, os, atexit
13
14
15
def
remove_files
():
16
files = glob.glob(
"/home/fferreira/public_html/roket_display*"
)
17
for
f
in
files:
18
os.remove(f)
19
20
21
widget =
Bokeh_guardian
()
22
curdoc().clear()
23
curdoc().add_root(widget.tab)
24
25
atexit.register(remove_files)
bokeh_guardian.remove_files
def remove_files()
Definition:
bokeh_guardian.py:15
widget_guardian.Bokeh_guardian
Definition:
widget_guardian.py:14
shesha
guardians
widgets
bokeh_guardian.py
Generated by
1.8.18