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

Widget view is not updated on trait change #23

Open
agoscinski opened this issue Jun 24, 2024 · 0 comments
Open

Widget view is not updated on trait change #23

agoscinski opened this issue Jun 24, 2024 · 0 comments

Comments

@agoscinski
Copy link

If one of the traits of a CodeInputWidget instance is changed, the values are changed but the displayed widget is not updated. I assume that somewhere the traits are not correctly linked? Here is a small example

from widget_code_input import CodeInputWidget
wci = CodeInputWidget(function_name="foo", function_body="return 5")
wci

Then in another cell

wci.function_body = "return 6"

But the displayed function_body does not change. It is however registered as trait.

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