I installed bokeh interactive visualization library and when I try to use the library from bokeh.plotting import figure I get a lot of errors. Is there a way to use this library for plotting figures in Jupyter Notebook?
I reproduced the issue and have to investigate more to understand why it is not working.
To fix it you need to restart the ipython kernel and after it is possible to import.
I think the issue is that your current ipython kernel process already has some version of tornado library loaded. Then when you install bokeh tornado is updated as well but to reload it you need to restart the kernel.
I restarted the ipython kernel but I still cannot import. It happens the same also with plotly (another visualization library).
I created an example here
I tested it with other people and it works as well for them (do first cell with pip2 install and then restart the kernel)
maybe you used pip instead of pip2
Ok. Now it works importing. What about a single selection widget using bokeh?
from bokeh.models.widgets import Select
from bokeh.io import output_file, show, vform
select = Select(title=“Option:”, value=“foo”, options=[“foo”, “bar”, “baz”, “quux”])
This works for you? I cannot see the form.
I added it to the same example and it is working
In my jupyter notebook is not working and I tried running it from your jupyter notebook example and it is not working anymore…
some kind of details will be helpful
What exactly is not working? What error message do you see?
I do not have errors. I simply can’t see the widget when I run the code…
I don’t know bokeh library so it is difficult to help
Do you have this code in your notebook
from bokeh.io import output_notebook output_notebook()
Can you send me link to your notebook?
Ok. If I add the code that you suggested it works. Thank you!