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

Debug endless docs build #165

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Debug endless docs build #165

merged 2 commits into from
Jan 24, 2025

Conversation

jl-wynen
Copy link
Member

It looks like switching the order of function calls around in the notebook avoids the freeze. But I don't understand why.

Note that the tmat setup needs to be removed before merging.

@jl-wynen jl-wynen requested a review from nvaytet January 17, 2025 16:12
"body_widget.output_selection_box.typical_outputs_widget.value = [Histogram]\n",
"body_widget.parameter_box.parameter_refresh_button.click()\n",
"body_widget.result_box.run_button.click()"
"ess_widget.children[0].children[0].value = RandomDistributionWorkflow"
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 it's fine as a fix for now.
I don't want to spend time understanding the underlying issue with ipywidgets, threads, event loops and trailtets...

@jl-wynen jl-wynen force-pushed the debug-endless-docs-build branch from 64572ee to 12c6612 Compare January 23, 2025 10:05
@jl-wynen jl-wynen marked this pull request as ready for review January 23, 2025 10:05
This is needed to prevent the docs build from freezing. At least in my
tests.
@jl-wynen jl-wynen force-pushed the debug-endless-docs-build branch from 12c6612 to cdec165 Compare January 23, 2025 10:06
@jl-wynen jl-wynen enabled auto-merge January 23, 2025 10:06
"cell_type": "markdown",
"metadata": {},
"source": [
"Note that the order of operations here is important.\n",
Copy link
Member

Choose a reason for hiding this comment

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

All of the code that interacted with the widget used to be hidden in the docs (with "nbsphinx": "hidden") because I didn't really want to have ugly things like ess_widget.children[0].children[0].value confuse the users.

Do we still want to hide stuff or do you think it's better to not hide for the sake of transparency?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, maybe that has something to do with the problem 🤔. Let me investigate.

Do we still want to hide stuff or do you think it's better to not hide for the sake of transparency?

These are developer docs. So I think showing the code makes sense in this particular instance.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hiding the cell has no impact on whether the build freezes. With the old code, it freezes regardless of whether the attribute is set.

@jl-wynen jl-wynen disabled auto-merge January 23, 2025 10:57
@jl-wynen jl-wynen merged commit 23cb90b into main Jan 24, 2025
4 checks passed
@jl-wynen jl-wynen deleted the debug-endless-docs-build branch January 24, 2025 09:52
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