We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
execution_state
1 parent 16162f9 commit 8f75a27Copy full SHA for 8f75a27
javascript/src/ycell.ts
@@ -749,6 +749,20 @@ export class YCodeCell
749
}
750
751
752
+ /**
753
+ * The code cell's execution state.
754
+ */
755
+ get execution_state(): 'running' | 'idle' {
756
+ return this.ymodel.get('execution_state') ?? 'idle';
757
+ }
758
+ set execution_state(state: 'running' | 'idle') {
759
+ if (this.ymodel.get('execution_state') !== state) {
760
+ this.transact(() => {
761
+ this.ymodel.set('execution_state', state);
762
+ }, false);
763
764
765
+
766
/**
767
* Cell outputs.
768
*/
0 commit comments