@@ -9,7 +9,7 @@ import assert from 'node:assert';
99import type { CodeBlock , ExecutionResult , ExecutableNode } from './types.js' ;
1010import { executeCodeCell , evaluateInlineExpression } from './kernel.js' ;
1111import {
12- isCellBlock ,
12+ isCodeBlock ,
1313 codeBlockRaisesException ,
1414 codeBlockSkipsExecution ,
1515 isInlineExpression ,
@@ -35,7 +35,7 @@ export async function computeExecutableNodes(
3535
3636 const results : ExecutionResult [ ] = [ ] ;
3737 for ( const matchedNode of nodes ) {
38- if ( isCellBlock ( matchedNode ) ) {
38+ if ( isCodeBlock ( matchedNode ) ) {
3939 // Pull out code to execute
4040 const code = select ( 'code' , matchedNode ) as Code ;
4141 const { status, outputs } = await executeCodeCell ( kernel , code . value ) ;
@@ -102,7 +102,7 @@ export function applyComputedOutputsToNodes(
102102 // Pull out the result for this node
103103 const thisResult = computedResult . shift ( ) ;
104104
105- if ( isCellBlock ( matchedNode ) ) {
105+ if ( isCodeBlock ( matchedNode ) ) {
106106 const rawOutputData = ( thisResult as IOutput [ ] ) ?? [ ] ;
107107 // Pull out outputs to set data
108108 const outputs = select ( 'outputs' , matchedNode ) as Outputs ;
@@ -132,6 +132,6 @@ export function getExecutableNodes(tree: GenericParent) {
132132 ) [ ]
133133 )
134134 // Filter out nodes that skip execution
135- . filter ( ( node ) => ! ( isCellBlock ( node ) && codeBlockSkipsExecution ( node ) ) )
135+ . filter ( ( node ) => ! ( isCodeBlock ( node ) && codeBlockSkipsExecution ( node ) ) )
136136 ) ;
137137}
0 commit comments