I am fairly new to Bokeh, a complete novice when it comes to Javascript and HTML, but fairly experienced with Python.
What I am trying to do is create a Bokeh dashboard. That dashboard includes both plots and also text that is updated regularly.
Obviously with the plots there is no problem, I am making use of ColumnDataSources to update my data and everything is working really well.
However I can’t work out how to update the text in a Div widget. To be clear, it is not meant to be updated in response to a user interaction, rather I have a python loop that continuously “streams” new data that to display.
My apologies if this is really obvious to some, but I have spent a lot of time searching for this now and can’t seem to work out the answer. I thought maybe something could be done with a CustomJS callback but I am not sure how to get it to trigger, or how to pass data to it from python for that matter.
Here the text is updated anytime something happens to the data (it can only be clicked on in the example), but you could have it updated under certain conditions only.
hi
you peoples are know very much about python can you tell how to read external text file in python or anaconda i am using codes but i didn’t any result tell me solution as early as possible.
Thanking you,
···
On Tue, Jul 25, 2017 at 8:12 AM, Sébastien Roche [email protected] wrote:
You can write a callback for the ColumnDataSource that you use to plot your data like below.
Here the text is updated anytime something happens to the data (it can only be clicked on in the example), but you could have it updated under certain conditions only.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
This question is off-topic for this mailing list, which is created to help with support for the Bokeh visulization library. For general python programming advice or help, you might try Stack Overflow:
hi
you peoples are know very much about python can you tell how to read external text file in python or anaconda i am using codes but i didn't any result tell me solution as early as possible.
Thanking you,
On Tue, Jul 25, 2017 at 8:12 AM, Sébastien Roche <[email protected]> wrote:
You can write a callback for the ColumnDataSource that you use to plot your data like below.
from bokeh.io import show
from bokeh.models import ColumnDataSource, CustomJS, Div
from bokeh.layouts import gridplot
from bokeh.plotting import figure
Here the text is updated anytime something happens to the data (it can only be clicked on in the example), but you could have it updated under certain conditions only.