| 3 | import { sanitizePythonVariableName } from './python-utils' |
| 4 | |
| 5 | export 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 | |
| 13 | export function createPythonCodeForButtonBlock(block: ButtonBlock, executionContext?: ButtonExecutionContext): string { |
| 14 | if (block.metadata?.deepnote_button_behavior === 'set_variable' && block.metadata?.deepnote_variable_name) { |
nothing calls this directly
no outgoing calls
no test coverage detected