Skip to content

Commit 380b35a

Browse files
authored
Dataframe support (#26)
* fix bug with python std out * basic data grid support, use monospace font for terminal out * Add examples, closes #24 * fix bug getting result
1 parent 05d241e commit 380b35a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/computations/python/run_python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async def getCell(p_x, p_y):
171171
async def c(p0_x, p0_y):
172172
return await getCell(p0_x, p0_y)
173173

174-
globals = {"getCells": getCells, "getCell": getCell, "c": c}
174+
globals = {"getCells": getCells, "getCell": getCell, "c": c, "result": None}
175175

176176
sout = StringIO()
177177
output_value = None
@@ -198,7 +198,7 @@ async def c(p0_x, p0_y):
198198

199199
# get output_value (last statement) or use local "result"
200200
if output_value is None:
201-
output_value = locals.get("result", None)
201+
output_value = globals.get("result", None)
202202

203203
# return array_output if output is an array
204204
array_output = None

0 commit comments

Comments
 (0)