You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
groovy.lang.MissingPropertyException: No such property: a for class: script15051208463782932642
at script15051208463782932642.run(script15051208463782932642.groovy:1)
at com.twosigma.beakerx.groovy.evaluator.GroovyCodeRunner.run(GroovyCodeRunner.java:71)
I do not know how imports are implemented, but probably you create new shell instance with new compilation customization. In that case, you have to copy bindings content into new shell.
The text was updated successfully, but these errors were encountered:
Done it already. Copping the context should pretty simple. You do not even need to clone it since it is stored in the separate Binding variable which could be passes to shell constructor.
Just looked through the code. It is implemented in a slightly different way, You do not use the shell object explicitly, instead you create a separate script for each cell (script parser creates the shell under the hood). In my experience this way you loose performance, but it is probably the best solution for notebook since you do not know what cell to expect next.
The problem is probably in this line. It flushes the whole binding on classloader reset. One can try to just comment it, but I do not know why it was done in the first place, so I do not know if it will break anything.
Like that:
I do not know how imports are implemented, but probably you create new shell instance with new compilation customization. In that case, you have to copy bindings content into new shell.
The text was updated successfully, but these errors were encountered: