public class JupyterKernelInterpreter
extends org.apache.zeppelin.interpreter.AbstractInterpreter
| Modifier and Type | Class and Description |
|---|---|
class |
JupyterKernelInterpreter.JupyterKernelProcessLauncher |
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.zeppelin.jupyter.JupyterKernelClient |
jupyterKernelClient |
protected File |
kernelWorkDir |
protected org.apache.zeppelin.interpreter.ZeppelinContext |
z |
| Constructor and Description |
|---|
JupyterKernelInterpreter(Properties properties) |
JupyterKernelInterpreter(String kernel,
Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.zeppelin.interpreter.ZeppelinContext |
buildZeppelinContext() |
void |
cancel(org.apache.zeppelin.interpreter.InterpreterContext context) |
String |
checkKernelPrerequisite(String pythonExec)
non-empty return value mean the errors when checking kernel prerequisite.
|
void |
close() |
List<org.apache.zeppelin.interpreter.thrift.InterpreterCompletion> |
completion(String buf,
int cursor,
org.apache.zeppelin.interpreter.InterpreterContext interpreterContext) |
org.apache.zeppelin.interpreter.Interpreter.FormType |
getFormType() |
String |
getKernelName() |
JupyterKernelInterpreter.JupyterKernelProcessLauncher |
getKernelProcessLauncher() |
int |
getProgress(org.apache.zeppelin.interpreter.InterpreterContext context) |
List<String> |
getRequiredPackages() |
org.apache.zeppelin.interpreter.ZeppelinContext |
getZeppelinContext() |
org.apache.zeppelin.interpreter.InterpreterResult |
internalInterpret(String st,
org.apache.zeppelin.interpreter.InterpreterContext context) |
void |
open() |
protected Map<String,String> |
setupKernelEnv() |
interpret, isInterpolateexecutePrecode, getClassloaderUrls, getClassName, getHook, getHook, getInterpreterGroup, getInterpreterInTheSameSessionByClassName, getInterpreterInTheSameSessionByClassName, getProperties, getProperty, getProperty, getScheduler, getUserName, interpolate, registerHook, registerHook, setClassloaderUrls, setInterpreterGroup, setProperties, setProperty, setUserName, unregisterHook, unregisterHookprotected org.apache.zeppelin.jupyter.JupyterKernelClient jupyterKernelClient
protected org.apache.zeppelin.interpreter.ZeppelinContext z
protected File kernelWorkDir
public JupyterKernelInterpreter(String kernel, Properties properties)
public JupyterKernelInterpreter(Properties properties)
public String getKernelName()
protected org.apache.zeppelin.interpreter.ZeppelinContext buildZeppelinContext()
public void open()
throws org.apache.zeppelin.interpreter.InterpreterException
open in class org.apache.zeppelin.interpreter.Interpreterorg.apache.zeppelin.interpreter.InterpreterExceptionpublic String checkKernelPrerequisite(String pythonExec)
pythonExec - string for python executableprotected Map<String,String> setupKernelEnv() throws IOException
IOExceptionpublic JupyterKernelInterpreter.JupyterKernelProcessLauncher getKernelProcessLauncher()
public void close()
throws org.apache.zeppelin.interpreter.InterpreterException
close in class org.apache.zeppelin.interpreter.Interpreterorg.apache.zeppelin.interpreter.InterpreterExceptionpublic org.apache.zeppelin.interpreter.InterpreterResult internalInterpret(String st, org.apache.zeppelin.interpreter.InterpreterContext context) throws org.apache.zeppelin.interpreter.InterpreterException
internalInterpret in class org.apache.zeppelin.interpreter.AbstractInterpreterorg.apache.zeppelin.interpreter.InterpreterExceptionpublic void cancel(org.apache.zeppelin.interpreter.InterpreterContext context)
throws org.apache.zeppelin.interpreter.InterpreterException
cancel in class org.apache.zeppelin.interpreter.Interpreterorg.apache.zeppelin.interpreter.InterpreterExceptionpublic org.apache.zeppelin.interpreter.Interpreter.FormType getFormType()
getFormType in class org.apache.zeppelin.interpreter.Interpreterpublic int getProgress(org.apache.zeppelin.interpreter.InterpreterContext context)
throws org.apache.zeppelin.interpreter.InterpreterException
getProgress in class org.apache.zeppelin.interpreter.Interpreterorg.apache.zeppelin.interpreter.InterpreterExceptionpublic List<org.apache.zeppelin.interpreter.thrift.InterpreterCompletion> completion(String buf, int cursor, org.apache.zeppelin.interpreter.InterpreterContext interpreterContext)
completion in class org.apache.zeppelin.interpreter.AbstractInterpreterpublic org.apache.zeppelin.interpreter.ZeppelinContext getZeppelinContext()
getZeppelinContext in class org.apache.zeppelin.interpreter.AbstractInterpreterCopyright © 2016–2020. All rights reserved.