public class IPythonKernelInterpreter extends Object implements KernelInterpreter
Constructor and Description |
---|
IPythonKernelInterpreter(IPythonUserConfig userConfig) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.zeppelin.interpreter.InterpreterResultMessage> |
interpretCode(String code)
IPython will be connected and interpreted through the object of this class.
|
void |
setInterpreter(org.apache.zeppelin.interpreter.LazyOpenInterpreter interpreter) |
void |
shutdown() |
void |
start() |
String |
toString() |
public IPythonKernelInterpreter(IPythonUserConfig userConfig)
userConfig
- - user's configuration including server address etc.public List<org.apache.zeppelin.interpreter.InterpreterResultMessage> interpretCode(String code) throws IOException, org.apache.zeppelin.interpreter.InterpreterException
interpretCode
in interface KernelInterpreter
code
- - python code to be executedIOException
org.apache.zeppelin.interpreter.InterpreterException
public void start() throws org.apache.zeppelin.interpreter.InterpreterException
start
in interface KernelInterpreter
org.apache.zeppelin.interpreter.InterpreterException
public void shutdown() throws org.apache.zeppelin.interpreter.InterpreterException
shutdown
in interface KernelInterpreter
org.apache.zeppelin.interpreter.InterpreterException
public void setInterpreter(org.apache.zeppelin.interpreter.LazyOpenInterpreter interpreter)
Copyright © 2016–2020. All rights reserved.