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

simplify code #75

Open
haesleinhuepf opened this issue Sep 6, 2024 · 1 comment
Open

simplify code #75

haesleinhuepf opened this issue Sep 6, 2024 · 1 comment

Comments

@haesleinhuepf
Copy link
Owner

This block in _orthogonal.py could be simplified:

        widgets[0].viewer.observe(redraw0)
        widgets[0].viewer.observe(redraw1)
        widgets[0].viewer.observe(redraw2)

        widgets[1].viewer.observe(redraw0)
        widgets[1].viewer.observe(redraw1)
        widgets[1].viewer.observe(redraw2)

        widgets[2].viewer.observe(redraw0)
        widgets[2].viewer.observe(redraw1)
        widgets[2].viewer.observe(redraw2)

git-bob think about this!

Copy link

github-actions bot commented Sep 6, 2024

This message was generated by git-bob (version: 0.2.6, model: gpt-4o-2024-05-13), an experimental AI-based assistant. It can make mistakes and has limitations. Check its messages carefully.

for widget in widgets:
    widget.viewer.observe(redraw0)
    widget.viewer.observe(redraw1)
    widget.viewer.observe(redraw2)

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