Skip to content

Commit

Permalink
Fix execution indicator in RTC mode (jupyterlab#13693)
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc authored Jan 8, 2023
1 parent 6d20897 commit 8d42fc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion packages/notebook/src/executionindicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,10 @@ export namespace ExecutionIndicator {
*/
private _startTimer(nb: Notebook) {
const state = this._notebookExecutionProgress.get(nb);
if (state) {
if (!state) {
return;
}
if (state.scheduledCell.size > 0) {
if (state.executionStatus !== 'busy') {
state.executionStatus = 'busy';
clearTimeout(state.timeout);
Expand All @@ -475,6 +478,8 @@ export namespace ExecutionIndicator {
this._tick(state);
}, 1000);
}
} else {
this._resetTime(state);
}
}

Expand Down
4 changes: 2 additions & 2 deletions packages/notebook/style/executionindicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
.jp-Notebook-ExecutionIndicator-tooltip {
visibility: hidden;
height: auto;
width: fit-content;
width: -moz-fit-content;
width: max-content;
width: -moz-max-content;
background-color: var(--jp-layout-color2);
color: var(--jp-ui-font-color1);
text-align: justify;
Expand Down

0 comments on commit 8d42fc0

Please sign in to comment.