-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
New heuristic to skip intermediate bond values #1892
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Try this Pull Request!Open Julia and type: julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="waiting_for_bond_to_trigger_execution")
julia> using Pluto |
pankgeorg
added a commit
that referenced
this pull request
Feb 8, 2022
> Try this release in your browser! _(Available 30 minutes after the release)_ > > <a href="https://binder.plutojl.org/v0.18.0/"><img alt="Binder logo" src="https://mybinder.org/badge_logo.svg"></a> **Generate your own binder links using [pluto-on-binder.glitch.me](https://pluto-on-binder.glitch.me/)!** [Diff since v0.17.7](v0.17.7...v0.18.0) **Merged pull requests:** - Make document currentscript work (#1765) (@dralletje) - don't count logs messages multiple times for pluto-logs width (#1843) (@Pangoraw) - Pattern matching system for lezer code (#1849) (@dralletje) - minor fix: Tables integration caused method ambiguation for Union{}[] (#1851) (@16bitmood) - Fix #1852, relocatable changes for sysimage usage. (#1853) (@MichaelHatherly) - Re-enable parseMixed (#1855) (@pankgeorg) - DOI in REAMDE for citation (#1864) (@rikhuijzer) - Use pkgdir instead of pathof (#1867) (@rikhuijzer) - Hide banner in CI (#1868) (@rikhuijzer) - Server-side events as configuration (#1871) (@ctrekker) - fix is_stdlib() for nightly and enable nightly tests (#1874) (@Pangoraw) - Awesome! Line wrapping! (#1876) (@dralletje) - respect maxlog keyword for logs, fixes #1858 (#1877) (@Pangoraw) - allow .. as an identifier, fixes #1875 (#1878) (@Pangoraw) - Server start event (#1882) (@ctrekker) - Julia 1.6 minimum (#1885) (@fonsp) - New heuristic to skip intermediate bond values (#1892) (@fonsp) - Send queued bond changes when last script finishes (#1898) (@fonsp) **Closed issues:** - Pkg.jl will corrupt itself on Windows (#671) - Failure creating JuMP DenseAxisArray (#806) - Frontend tests fail too often (#1234) - Open multiple notebooks at start and without browser (#1278) - Segmentation faults on Julia 1.7 M1 (#1722) - Table of content overlaps text in static HTML (#1770) - Pluto hangs when cell contains `(md" ", md"$t")` (#1800) - Cell drag drop broken in Linux Chrome v97 (#1809) - Tables integration causes method ambiguities for `pluto_showable` (#1815) - Segfault with CSV, SQLite, tables (M1) (#1842) - Use RelocatableFolders.jl instead of project_relative_dir to allow sysimages (#1852) - Logging doesn't respect `maxlog` (#1858) - TOC in dark mode is still light when aside (#1860) - ProgressLogging: suppressed logging in Turing.jl (#1862) - Cannot update to version 0.17.7 (#1869) - Stdlib packages marked as not found (#1872) - EllipsisNotation.jl (`randn((10,10))[1, ..]`) does not work (#1875) - Too many intermediate bond values (#1891)
pankgeorg
added a commit
that referenced
this pull request
Feb 8, 2022
> Try this release in your browser! _(Available 30 minutes after the release)_ > > <a href="https://binder.plutojl.org/v0.18.0/"><img alt="Binder logo" src="https://mybinder.org/badge_logo.svg"></a> **Generate your own binder links using [pluto-on-binder.glitch.me](https://pluto-on-binder.glitch.me/)!** [Diff since v0.17.7](v0.17.7...v0.18.0) **Merged pull requests:** - Make document currentscript work (#1765) (@dralletje) - don't count logs messages multiple times for pluto-logs width (#1843) (@Pangoraw) - Pattern matching system for lezer code (#1849) (@dralletje) - minor fix: Tables integration caused method ambiguation for Union{}[] (#1851) (@16bitmood) - Fix #1852, relocatable changes for sysimage usage. (#1853) (@MichaelHatherly) - Re-enable parseMixed (#1855) (@pankgeorg) - DOI in REAMDE for citation (#1864) (@rikhuijzer) - Use pkgdir instead of pathof (#1867) (@rikhuijzer) - Hide banner in CI (#1868) (@rikhuijzer) - Server-side events as configuration (#1871) (@ctrekker) - fix is_stdlib() for nightly and enable nightly tests (#1874) (@Pangoraw) - Awesome! Line wrapping! (#1876) (@dralletje) - respect maxlog keyword for logs, fixes #1858 (#1877) (@Pangoraw) - allow .. as an identifier, fixes #1875 (#1878) (@Pangoraw) - Server start event (#1882) (@ctrekker) - Julia 1.6 minimum (#1885) (@fonsp) - New heuristic to skip intermediate bond values (#1892) (@fonsp) - Send queued bond changes when last script finishes (#1898) (@fonsp) **Closed issues:** - Pkg.jl will corrupt itself on Windows (#671) - Failure creating JuMP DenseAxisArray (#806) - Frontend tests fail too often (#1234) - Open multiple notebooks at start and without browser (#1278) - Segmentation faults on Julia 1.7 M1 (#1722) - Table of content overlaps text in static HTML (#1770) - Pluto hangs when cell contains `(md" ", md"$t")` (#1800) - Cell drag drop broken in Linux Chrome v97 (#1809) - Tables integration causes method ambiguities for `pluto_showable` (#1815) - Segfault with CSV, SQLite, tables (M1) (#1842) - Use RelocatableFolders.jl instead of project_relative_dir to allow sysimages (#1852) - Logging doesn't respect `maxlog` (#1858) - TOC in dark mode is still light when aside (#1860) - ProgressLogging: suppressed logging in Turing.jl (#1862) - Cannot update to version 0.17.7 (#1869) - Stdlib packages marked as not found (#1872) - EllipsisNotation.jl (`randn((10,10))[1, ..]`) does not work (#1875) - Too many intermediate bond values (#1891)
16 tasks
fonsp
added a commit
that referenced
this pull request
Oct 22, 2023
This was referenced Aug 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #1891, see that issue for the introduction
Example 1
Schermopname.2022-02-03.om.17.15.37.mov
Example 2
Schermopname.2022-02-03.om.17.14.42.mov
Cause of problem
Before this PR, we would hold back all intermediate bond updates while this function returns true:
Pluto.jl/frontend/components/Editor.js
Lines 786 to 795 in d8bf859
In particular, we check that no cells are running or queued (
Object.values(this.state.notebook.cell_results).some((cell) => cell.running || cell.queued)
).The problem is that it takes some time for the server to process the bond values, which will set the cell statuses to "queued" (in an async task). In the short time window after sending a bond value, but before a response from the server,
notebook_is_idle()
will always returntrue
, and all bond updates start queueing in the server.Solution
This PR adds a new heuristic,
waiting_for_bond_to_trigger_execution
. Whenever you ask the server to run a bond value, it is set totrue
immediately, and only set back tofalse
after a patch response from the server (which will likely be a response from the bond request).Before setting
waiting_for_bond_to_trigger_execution
totrue
, we check whether any (enabled) cell depends on the bound symbol.TODO