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

Error with UI on launch: NotImplementedError: Widgets cannot be copied; custom implementation required #73

Open
jameshiggie opened this issue Jul 16, 2024 · 3 comments

Comments

@jameshiggie
Copy link

Error with UI on launch

File /usr/local/.pyenv/versions/3.8.19/lib/python3.8/copy.py:153, in deepcopy(x, memo, _nil)
    151 copier = getattr(x, "__deepcopy__", None)
    152 if copier is not None:
--> 153     y = copier(memo)
    154 else:
    155     reductor = dispatch_table.get(cls)

File /usr/local/.pyenv/versions/3.8.19/lib/python3.8/site-packages/ipywidgets/widgets/widget.py:512, in Widget.__deepcopy__(self, memo)
    511 def __deepcopy__(self, memo):
--> 512     raise NotImplementedError("Widgets cannot be copied; custom implementation required")

NotImplementedError: Widgets cannot be copied; custom implementation required

image

@jameshiggie
Copy link
Author

we found locking ipywidgets to 8.1.0 fixes this problem.

suspected bug linked to jupyter-widgets/ipywidgets#3780

@jameshiggie
Copy link
Author

jameshiggie commented Jul 16, 2024

suggest a update to requirements.txt

Line 2: ipywidgets==8.1.0

@ysghandi
Copy link

ysghandi commented Aug 9, 2024

We encountered the same issue and updating the ipywidgets==8.1.0 addresses the error.

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

2 participants