-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_ide.py
47 lines (40 loc) · 1.21 KB
/
main_ide.py
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
import os
os.environ["OUTDATED_IGNORE"] = "1"
import panel as pn
pn.extension(sizing_mode="stretch_width")
pn.extension(
"plotly",
sizing_mode="stretch_width",
)
pn.extension(notifications=True)
pn.extension("plotly", "tabulator")
from src.MainPage.main_page import MainPage
app = pn.template.BootstrapTemplate(
title="BioPysKit Dashboard",
header_background="#186FEF",
logo="./assets/Icons/biopsykit_Icon.png",
)
app.config.console_output = "disable"
app.config.log_level = "CRITICAL"
app.sidebar.constant = False
app.main.constant = False
app.theme_toggle = False
info_btn = pn.widgets.Button(button_type="light", icon="help-hexagon", width=15)
info_btn.js_on_click(
args={"target": "https://mad-lab-fau.github.io/biopsykit-dashboard/documentation/"},
code="window.open(target)",
)
app.header.append(info_btn)
current_page = MainPage(app)
if __name__ == "__main__":
os.environ["OUTDATED_IGNORE"] = "1"
pn.config.console_output = "disable"
app.sidebar.append(current_page.get_sidebar())
current_page.get_main_menu(None)
app.servable().show(
port=5022,
verbose=True,
autoreload=True,
)
# ssl_certfile = "localhost.crt",
# ssl_keyfile = "localhost.key",