Skip to content

Commit

Permalink
Add autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
EveGayer committed Apr 26, 2018
1 parent 07701cb commit a41c105
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/utils.py
Expand Up @@ -186,8 +186,8 @@ def barchart(document_topics, height, topics=None, script=JAVASCRIPT, tools=TOOL
else:
menu = [(select, option) for select, option in zip(document_topics.index, options)]
label = "Select document to display proportions"
dropdown = bokeh.models.widgets.Dropdown(label=label, menu=menu, callback=callback)
return bokeh.layouts.column(dropdown, fig, sizing_mode='scale_width')
dropdown = bokeh.models.widgets.AutocompleteInput(completions=["dickens", "hallo"], callback=callback)
return bokeh.layouts.column(fig, dropdown, sizing_mode='scale_width')


def read_logfile(logfile):
Expand Down

0 comments on commit a41c105

Please sign in to comment.