MCPcopy Create free account
hub / github.com/deepnote/deepnote / ButtonExecutionContext

Interface ButtonExecutionContext

packages/blocks/src/blocks/button-blocks.ts:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { sanitizePythonVariableName } from './python-utils'
4
5export interface ButtonExecutionContext {
6 /**
7 * If set, button blocks with this variable name that are being executed
8 * will resolve their source code to set the variable to True, False otherwise.
9 */
10 variableContext?: string[]
11}
12
13export function createPythonCodeForButtonBlock(block: ButtonBlock, executionContext?: ButtonExecutionContext): string {
14 if (block.metadata?.deepnote_button_behavior === 'set_variable' && block.metadata?.deepnote_variable_name) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected