Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe how to debug ipywidgets_bokeh together with an Ipywidgets widgets. #45

Open
Tracked by #91
MarcSkovMadsen opened this issue Dec 20, 2021 · 1 comment
Open
Tracked by #91

Comments

@MarcSkovMadsen
Copy link

MarcSkovMadsen commented Dec 20, 2021

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()
@MarcSkovMadsen
Copy link
Author

Same problem again. I have no starting point for debugging geemap issues reported in another issue.

@ndmlny-qs ndmlny-qs mentioned this issue Apr 6, 2023
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant