-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
[v2] Control when a Cell is executing #279 #285
Conversation
Hey, @echarles - how are you? I submitted a new version for #279 in this PR and I think it's much simpler with the changes! I have a single issue I'd like to align on. In the Here is some evidence of what I mentioned: How do you think we could resolve this? |
Awesome!
In this code block, jupyter-ui/packages/react/src/jupyter/kernel/KernelExecutor.ts Lines 216 to 244 in ec9818c
error case, I would add this._executed.resolve(this._model); (no guarantee... :)
|
I tested it here and unfortunately it didn't work.
I confess that I didn't fully understand this destructuring, but today it fails, which causes the I changed this block to what my typing indicated here as correct and it worked, evidence below: Let me know if you agree with the change. FYI: @fcollonval. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM Thx @MarcosVn
Merged and 0.17.0 released. Thank you so much for this @MarcosVn |
Reimplements the proposed solution for the described scenario in Control when a Cell is executing #279 issue (after Kernel state for Cell and Output #282 changes)
Added the
isExecuting
attribute inCellState
to track/control when a cell is executing;Also added
isAnyCellExecuting
to the cells map to control if there is any execution in progress (or if all cells areidle
);Improved related comments;
Updated
CellAdapter
to update theisExecuting
state in new_execute
generic function;Added the
CellExecuteControl.tsx
example.