-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setting to auto-rerun cells when deps change
- Loading branch information
Jake Donham
committed
Apr 16, 2024
1 parent
2fb1f7b
commit 4de2868
Showing
9 changed files
with
141 additions
and
38 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as vscode from "vscode"; | ||
|
||
export class NotebookCellStatusBarItemProvider | ||
implements vscode.NotebookCellStatusBarItemProvider | ||
{ | ||
provideCellStatusBarItems(cell: vscode.NotebookCell) { | ||
// TODO(jaked) | ||
// provideCellStatusBarItems is called on cell edits | ||
// but the cell.document.dirty flag is always false | ||
if (cell.metadata.dirty || cell.document.isDirty) { | ||
const item = new vscode.NotebookCellStatusBarItem( | ||
"$(circle-filled)", | ||
vscode.NotebookCellStatusBarAlignment.Right | ||
); | ||
// TODO(jaked) | ||
// should disable this while the cell is executing | ||
item.command = "notebook.cell.execute"; | ||
return item; | ||
} | ||
return; | ||
} | ||
} |
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
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
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
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