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

AttributeError: 'Button' object has no attribute 'deepcopy' - when running Component Gallery > Widgets > Button in Panel 1.5.4 documentation #7506

Open
1 task
jnareb opened this issue Nov 19, 2024 · 0 comments

Comments

@jnareb
Copy link

jnareb commented Nov 19, 2024

ALL software version info

The error does appear in the Panel documentation, when tryin to run the code examples in https://panel.holoviz.org/reference/widgets/Button.html via "Run cell" button. At this time the most recent version of Panel is 1.5.4.

Software Version Info
Chrome 130.0.6723.117 (64-bit)
Windows 10 Home 22H2 (64-bit)

Description of expected behavior and the observed behavior

I wanted to see how the Button widget would behave with Python backend behind it, so on the Component Gallery > Widgets > Button page in Panel v1.5.4 user documentation I have clicked on "Run cell" button in the first cell, then clicked it again when asked "Click again to proceed".

Most cells executed just fine, and showed "Executed successfully" info message.

The three last cells however showed instead the following error message "AttributeError: 'Button' object has no attribute 'deepcopy'"

Example code cell in the documentation that exhibits this behavior

pn.Row(
    pn.widgets.Button(icon='alert-triangle-filled', button_type='warning', name='WARNING'),
    pn.widgets.Button(icon='bug', button_type='danger', name='Error')
)

Stack traceback and/or browser JavaScript console output

AttributeError: 'Button' object has no attribute 'deepcopy'

Screenshots or screencasts of the bug in action

panel_documentation-component_gallery-button-error_running_cells-screenshot.png

  • I may be interested in making a pull request to address this
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