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

Lazy-docs #919

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Lazy-docs #919

wants to merge 3 commits into from

Conversation

edan-bainglass
Copy link
Member

@edan-bainglass edan-bainglass commented Nov 8, 2024

This PR provides documentation to accompany the changes made in the lazy-loading PR (#802)

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.28%. Comparing base (85b897b) to head (9947992).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #919      +/-   ##
==========================================
+ Coverage   71.26%   71.28%   +0.01%     
==========================================
  Files         114      114              
  Lines        7097     7097              
==========================================
+ Hits         5058     5059       +1     
+ Misses       2039     2038       -1     
Flag Coverage Δ
python-3.11 71.28% <ø> (+0.01%) ⬆️
python-3.9 71.28% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@superstar54 superstar54 left a comment

Choose a reason for hiding this comment

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

Thanks for the docs, it's very helpful to get the whole picture of the design, and for reviewing the PR.
I added some quick comments. I am going to review the lazy-loading PR, and may add more comments later.

docs/source/development/architecture.rst Outdated Show resolved Hide resolved
docs/source/development/architecture.rst Outdated Show resolved Hide resolved
Comment on lines +89 to +99
# Controller methods
# EXAMPLE
def _on_trait_change(self, change):
# Update widgets based on model changes
...
Copy link
Member

Choose a reason for hiding this comment

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

I think you also need to show how the widgets in the UI trigger the model update.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is covered by two-way links

# Two-way link - trait is synchronized between widget and model
ipw.link(
    (self._model, "trait"),
    (widget, "value"),
)

docs/source/development/architecture.rst Show resolved Hide resolved
@edan-bainglass edan-bainglass force-pushed the lazy-loading branch 3 times, most recently from 578a997 to a65beed Compare November 14, 2024 05:48
@edan-bainglass edan-bainglass force-pushed the lazy-docs branch 2 times, most recently from 1a4741c to 55fe31a Compare November 14, 2024 19:59
@danielhollas danielhollas self-requested a review November 14, 2024 20:38
Base automatically changed from lazy-loading to main November 20, 2024 11:15
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