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

TQDM.ipynb reference raises exception: AttributeError: Column.value property descriptor does not exist #2554

Closed
MarcSkovMadsen opened this issue Jul 21, 2021 · 3 comments · Fixed by #2555
Labels
type: bug Something isn't correct or isn't working
Milestone

Comments

@MarcSkovMadsen
Copy link
Collaborator

I'm on Panel 0.12.0, Param 1.11.1, Bokeh: 2.3.3

If I run the TQDM.ipynb reference notebook top to bottom and click one of the buttons I get a AttributeError: Column.value property descriptor does not exist error.

image

@MarcSkovMadsen MarcSkovMadsen added the TRIAGE Default label for untriaged issues label Jul 21, 2021
@MarcSkovMadsen
Copy link
Collaborator Author

You can replicate the problem using this simple script

import time

import panel as pn

from panel.widgets import Tqdm

pn.extension()

tqdm = Tqdm()

def run_loop(*events, timeout=0.2):
    for i in tqdm(range(0,10), desc="My loop bar", leave=True, colour='#666666'):
        time.sleep(timeout)

run_loop(timeout=0.01)

button = pn.widgets.Button(name="Run Loop", button_type="success")
button.on_click(run_loop)
pn.Row(button, tqdm).servable()

@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented Jul 21, 2021

I've tried to identify the cause and understand how to fix this without success.

I can see it tries to set the value on a Column which does not make sense. But why I don't understand. I suspect something changed in reactive.py since I implemented TQDM and tested. But I cannot find out what.

I will need your help @philippjfr to fix this.

@philippjfr
Copy link
Member

Got a fix, will push out a 0.12.1 in the coming days.

@philippjfr philippjfr added type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels Jul 21, 2021
@philippjfr philippjfr added this to the v0.12.1 milestone Jul 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants