I am running bokeh as a Bokeh Server Application.
I would like to do some actions when all the items are already rendered on the page. So I found that a message is printed in this file. How could I run some code after the message? Is there any flag that I could see to check if the server is loaded and all the elements rendered? Is possible to override methods on bokeh?
if promise != null
promise.then(
(value) ->
console.log("Bokeh items were rendered successfully")
(error) ->
console.log("Error rendering Bokeh items ", error)
)
Update
As this is still not possible, I found a workaround in the mean time:
oldLog = console.log;
console.log = function (message) {
if(message.localeCompare('Bokeh items were rendered successfully') == 0){
window.top.postMessage('show-bokeh-iframe', '*')
console.log = oldLog;
}
oldLog.apply(console, arguments);
};