Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- multi_select = Select (title = "Select Quarters" , value = str1, options = df)
- def function_to_call(attrname, old, new):
- print(multi_select.value)
- text=("""<!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- {{ bokeh_css }}
- {{ bokeh_js }}
- </head>
- <body>
- <style type="text/css">
- {% include 'styles.css' %}
- </style>
- {{ plot_div|indent(8) }}
- {{ plot_script|indent(8) }}
- <div>
- <h1 style="color:#8CC43F">{selectval}</h1>
- </div>
- </body>
- </html>
- """)
- m =multi_select.on_change('value',function_to_call)
- text = text.format(selectval=m)
- div = Div(text=text,width=200, height=100)
- curdoc().add_root(widgetbox(multi_select,div))
Add Comment
Please, Sign In to add comment