mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
Ensure that registered hooks are applied after call to open()
This commit is contained in:
parent
1331fe1bd3
commit
044a99ddd7
1 changed files with 8 additions and 0 deletions
|
|
@ -431,6 +431,14 @@ public class RemoteInterpreterServer
|
|||
try {
|
||||
InterpreterContext.set(context);
|
||||
|
||||
// Open the interpreter instance prior to calling interpret().
|
||||
// This is necessary because the earliest we can register a hook
|
||||
// is from within the open() method.
|
||||
LazyOpenInterpreter lazy = (LazyOpenInterpreter) interpreter;
|
||||
if (!lazy.isOpen()) {
|
||||
lazy.open();
|
||||
}
|
||||
|
||||
// Add hooks to script from registry.
|
||||
// Global scope first, followed by notebook scope
|
||||
processInterpreterHooks(null);
|
||||
|
|
|
|||
Loading…
Reference in a new issue