Xirider / LiveCode

Real-time python variable evaluation
MIT License
14 stars 2 forks source link

[Compatibility for jupyter] #19

Open liliaoyuan opened 6 months ago

liliaoyuan commented 6 months ago

Hi there,

I'm encountering an issue in JupyterLab when using LiveCode with a Python 3.11.4 kernel.

Specifically, when I activate LiveCode in a cell containing Python code, I receive a "XXX is not defined" error for variables that have been defined and run correctly in previous cells. This leads me to suspect that LiveCode might have limitations with handling variables defined across multiple Python cells, as it appears to not recognize variables not defined within the same cell.

Could this be a scope-related issue with LiveCode's integration in JupyterLab, where it doesn't recognize the execution order of cells? I would appreciate any insights or solutions for this