A bit like Jupyter notebooks, I want to run cells of code against the same context
in my case I have a variable in Go, a = 2 and i run this.
Then later I want to do b = a + 2 and run that from Go.
Currently doing this will result in an error a does not exist.
It seems then that all scripts must be run from top to bottom and include everything.
Is there a way to share the context in which previous python has been run?
I thought that the EmbeddedPython object would hold its state but apparently not?
Is this possible?
A bit like Jupyter notebooks, I want to run cells of code against the same context
in my case I have a variable in Go,
a = 2and i run this.Then later I want to do
b = a + 2and run that from Go.Currently doing this will result in an error
a does not exist.It seems then that all scripts must be run from top to bottom and include everything.
Is there a way to share the context in which previous python has been run?
I thought that the
EmbeddedPythonobject would hold its state but apparently not?Is this possible?