☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Using bokeh widgets with ipython interact

Community Support
Tom
Tom
Is there a way to use bokeh widgets as ipython widgets? I tried the naive way by taking the AutocompleteInput and putting it as an argument to interact but that yielded the following error message:

ValueError: <bokeh.models.widgets.inputs.AutocompleteInput object at 0x28C70A10> cannot be transformed to a Widget


This is the code:


w = bwidgets.AutocompleteInput(completions=['AAAA', 'AA', 'B', 'BB'], title='example')
@iwidgets.interact(param=w)
def p(param='AAAA'):
print(param)



Do I need to wrap the bokeh widget in some ipython widget magic or are they totally incompatible?

--Tom
⌁   Link to post

End of archived discussion · Replies are disabled