Describe how to debug ipywidgets_bokeh together with an Ipywidgets widgets.
MarcSkovMadsen opened this issue · comments
Marc Skov Madsen commented
I can only do very primitive debugging as in https://github.com/martinRenou/ipycanvas/issues/236 which means that I cannot really find cause of errors like in #44.
I would like some documentation that shows how I could configure and debug an example like the below. To find the cause of the above error. Otherwise I would depend on someone from this project or the specific Ipywidgets project to identify the cause and fix it.
# pip install ipycanvas panel ipywidgets_bokeh
import panel as pn
from ipycanvas import Canvas
pn.extension('ipywidgets')
canvas = Canvas(width=200, height=200)
# Cubic curves example
button = pn.widgets.Button(name="run")
@pn.depends(button.param.clicks, watch=True)
def draw(clicks):
print("draw begin")
canvas.begin_path()
canvas.move_to(75, 40)
canvas.bezier_curve_to(75, 37, 70, 25, 50, 25)
canvas.fill()
print("draw end")
pn.Column(
button,
pn.panel(canvas, height=200, width=200)
).servable()
Marc Skov Madsen commented
Same problem again. I have no starting point for debugging geemap issues reported in another issue.