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

Fixing unlinked traits in WCI due to invalid code_theme (Fix #53) #54

Merged
merged 4 commits into from
Jul 4, 2024

Conversation

agoscinski
Copy link
Collaborator

@agoscinski agoscinski commented Jul 4, 2024

Fix for #53


📚 Documentation preview 📚: https://scicode-widgets--54.org.readthedocs.build/en/54/

Adding tests if invalid code theme returns error.

Adding tests if widget view is updated on change of function_body trait.
@agoscinski agoscinski force-pushed the fix/unlinked-traits branch from b698665 to 92fe2c9 Compare July 4, 2024 09:21
@agoscinski agoscinski requested a review from ceriottm July 4, 2024 09:23
Copy link
Collaborator

@ceriottm ceriottm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. IDK why the tests fail though.

Increase waiting time and add sleep when a notebook is restarted. The
notebook is sometimes run before jupyter has finished loading everything
in the background.
@agoscinski agoscinski force-pushed the fix/unlinked-traits branch from 116d4c1 to 82acb1c Compare July 4, 2024 11:38
The change in the last cell does not get active, since the widget has
not been loaded fully.
@agoscinski agoscinski force-pushed the fix/unlinked-traits branch from 82acb1c to b1ba4cd Compare July 4, 2024 11:41
@agoscinski
Copy link
Collaborator Author

Sadly the lab-4 tests are a bit unstable. I think because you can run all cell with selenium before jupyter finished loading, which results in unexecuted cells, but what exactly is happening there is still unclear to me. Anyway I added some sleeps to make the tests also work in the CI

@agoscinski agoscinski merged commit e480910 into main Jul 4, 2024
3 checks passed
@agoscinski agoscinski deleted the fix/unlinked-traits branch July 4, 2024 11:54
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

Successfully merging this pull request may close these issues.

2 participants