Does anyone know if there is a way to see and debug javascript in a callback that is run in bokeh? Any help is much appreciated, thank-you!
For instance, I am running very simple, static code to debug my slider but I can’t see the results from running the code in def update_line because it is in javascript:
Hi,
In general, you can find a web development area for Javascript logging information.
In firefox, you can go to
tools → web development → web console
In safari, it’s
develop → show javascript console
Tong
···
On Friday, 23 February 2018 23:06:51 UTC+1, [email protected] wrote:
Does anyone know if there is a way to see and debug javascript in a callback that is run in bokeh? Any help is much appreciated, thank-you!
For instance, I am running very simple, static code to debug my slider but I can’t see the results from running the code in def update_line because it is in javascript:
* Adding "console.log(...)" statements to your callback code. This affords "printf debugging" output in the browser console.
* Adding "debugger" statements to your callback code. If the callback code executes when a browser JS dev window is open, a debugger should stop at that point where you can inspect variables, single step code, etc.
It would be super helpful if some of this information made it into the user's guide so if anyone wants to make a quick PR to add a "Debugging" section to the callbacks chapter, it would be extremely appreciated.
Hi,
In general, you can find a web development area for Javascript logging information.
In firefox, you can go to
tools -> web development -> web console
In safari, it's
develop -> show javascript console
Tong
On Friday, 23 February 2018 23:06:51 UTC+1, hli...@oceana.org wrote:
Does anyone know if there is a way to see and debug javascript in a callback that is run in bokeh? Any help is much appreciated, thank-you!
For instance, I am running very simple, static code to debug my slider but I can't see the results from running the code in def update_line because it is in javascript: