EasySci commited on
Commit
bad2542
·
1 Parent(s): 1fcd600

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -15
app.py CHANGED
@@ -8,21 +8,18 @@ from bokeh.sampledata.autompg import autompg_clean as df
8
  idf = df.interactive()
9
 
10
  # Define Panel widgets
11
- cylinders = pn.widgets.IntSlider(name='Cylinders', start=4, end=8, step=2)
12
  mfr = pn.widgets.ToggleGroup(
 
 
 
 
13
 
14
- name='Home'
15
- options=['Home1']
16
- value=['Home2']
17
- button_type='success'
18
- # name='MFR',
19
- # options=['ford', 'chevrolet', 'honda', 'toyota', 'audi'],
20
- # value=['ford', 'chevrolet', 'honda', 'toyota', 'audi'],
21
- # button_type='success')
22
- # yaxis = pn.widgets.RadioButtonGroup(
23
- # name='Y axis',
24
- # options=['hp', 'weight'],
25
- # button_type='success'
26
  )
27
 
28
  # Combine pipeline and widgets
@@ -44,8 +41,7 @@ ihvplot = ipipeline.hvplot(x='mpg', y=yaxis, by='origin', color=["#ff6f69", "#ff
44
  # Layout using Template
45
  template = pn.template.FastListTemplate(
46
  title='EasySciRead',
47
- # sidebar=[cylinders, 'Manufacturers', mfr, 'Y axis' , yaxis],
48
- sidebar=['Home', home],
49
  main=[ihvplot.panel()],
50
  accent_base_color="#88d8b0",
51
  header_background="#88d8b0",
 
8
  idf = df.interactive()
9
 
10
  # Define Panel widgets
11
+ cylinders = pn.widgets.IntSlider(name='Cylinderssss', start=4, end=8, step=2)
12
  mfr = pn.widgets.ToggleGroup(
13
+ name='MFR',
14
+ options=['ford', 'chevrolet', 'honda', 'toyota', 'audi'],
15
+ value=['ford', 'chevrolet', 'honda', 'toyota', 'audi'],
16
+ button_type='success')
17
 
18
+
19
+ yaxis = pn.widgets.RadioButtonGroup(
20
+ name='Y axis',
21
+ options=['hp', 'weight'],
22
+ button_type='success'
 
 
 
 
 
 
 
23
  )
24
 
25
  # Combine pipeline and widgets
 
41
  # Layout using Template
42
  template = pn.template.FastListTemplate(
43
  title='EasySciRead',
44
+ sidebar=[cylinders, 'Manufacturers', mfr, 'Y axis' , yaxis],
 
45
  main=[ihvplot.panel()],
46
  accent_base_color="#88d8b0",
47
  header_background="#88d8b0",