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

NestedSelect example does not work #6827

Closed
itsgifnotjiff opened this issue May 13, 2024 · 2 comments
Closed

NestedSelect example does not work #6827

itsgifnotjiff opened this issue May 13, 2024 · 2 comments
Assignees

Comments

@itsgifnotjiff
Copy link

This NestedSelect tutorial does not work. It throws ValueError as is and I am really trying to make it work but I simply can't.

def list_options(level, value):
    if level == "time_step":
        options = {"Daily": list_options, "Monthly": list_options}
    elif level == "level_type":
        options = {f"{value['time_step']}_upper": list_options, f"{value['time_step']}_lower": list_options}
    else:
        options = [f"{value['level_type']}.json", f"{value['level_type']}.csv"]

    return options

pn.widgets.NestedSelect(
    options=list_options,
    levels=["time_step", "level_type", "file_type"],
)
@philippjfr philippjfr added this to the v1.4.3 milestone May 13, 2024
@philippjfr philippjfr added the type: bug Something isn't correct or isn't working label May 13, 2024
@ahuang11
Copy link
Contributor

Can you please share the error? It works fine for me.

image

@philippjfr philippjfr added more info needed and removed type: bug Something isn't correct or isn't working labels May 17, 2024
@philippjfr philippjfr removed this from the v1.4.3 milestone May 17, 2024
@itsgifnotjiff
Copy link
Author

This one might be on me. Ever since I upgraded to Panel 1.4.2 from 1.3.8 I have been having very exotic issues like not displaying widgets and ValueErrors. I would actually close this issue until someone else reports it as I have zero confidence blaming Panel for the mishap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants