Github user Leemoonsoo commented on the issue:

    https://github.com/apache/zeppelin/pull/1596
  
    I think cleaner way to remove `open()` inside of `jobRun()` could be call 
`open()` inside of 
[LazyOpenInterpreter.getHook()](https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/LazyOpenInterpreter.java#L162)
 like `LazyOpenInterpreter.interpret()`, `LazyOpenInterpreter.cancel()` and 
other methods do.
    
    Regarding create all interpreters once in the same session, 
    Like you already mentioned, it'll make unnecessary interpreter creation.
    Some of interpreters in interpreter group may not work by many reasons 
(configuration, system env, external commands, etc).
    
    I would say [Interpreter.getInterpreterInTheSameSessionByClassName()]( 
https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/Interpreter.java#L273)
 is a sort of API that manages dependencies of Interpreter. The api returns 
LazyInterpreter of another interpreter in the same group. So, interpreter 
supposed to simply get reference to the other interpreter use it without 
explicitly defining dependency.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to