Update main_app.py
Browse files- main_app.py +3 -2
main_app.py
CHANGED
@@ -415,11 +415,11 @@ def _(mo, template_variant):
|
|
415 |
|
416 |
|
417 |
@app.cell
|
418 |
-
def _(function_editor, mo, os):
|
|
|
419 |
if function_editor.value:
|
420 |
# Get the edited code from the function editor
|
421 |
code = function_editor.value['editor']
|
422 |
-
function_name = None
|
423 |
# Extract function name using AST without executing the code
|
424 |
|
425 |
try:
|
@@ -448,6 +448,7 @@ def _(function_editor, mo, os):
|
|
448 |
mo.md(f"Syntax error in function code: {str(e)}")
|
449 |
return (
|
450 |
code,
|
|
|
451 |
deployable_function,
|
452 |
f,
|
453 |
file_path,
|
|
|
415 |
|
416 |
|
417 |
@app.cell
|
418 |
+
def _(function_editor, mo, os, ast):
|
419 |
+
function_name = None
|
420 |
if function_editor.value:
|
421 |
# Get the edited code from the function editor
|
422 |
code = function_editor.value['editor']
|
|
|
423 |
# Extract function name using AST without executing the code
|
424 |
|
425 |
try:
|
|
|
448 |
mo.md(f"Syntax error in function code: {str(e)}")
|
449 |
return (
|
450 |
code,
|
451 |
+
parsed_ast,
|
452 |
deployable_function,
|
453 |
f,
|
454 |
file_path,
|