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, isInterpolate
executePrecode, getClassloaderUrls, getClassName, getHook, getHook, getInterpreterGroup, getInterpreterInTheSameSessionByClassName, getInterpreterInTheSameSessionByClassName, getProperties, getProperty, getProperty, getScheduler, getUserName, interpolate, registerHook, registerHook, setClassloaderUrls, setInterpreterGroup, setProperties, setProperty, setUserName, unregisterHook, unregisterHook
protected 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.Interpreter
org.apache.zeppelin.interpreter.InterpreterException
public String checkKernelPrerequisite(String pythonExec)
pythonExec
- string for python executableprotected Map<String,String> setupKernelEnv() throws IOException
IOException
public JupyterKernelInterpreter.JupyterKernelProcessLauncher getKernelProcessLauncher()
public void close() throws org.apache.zeppelin.interpreter.InterpreterException
close
in class org.apache.zeppelin.interpreter.Interpreter
org.apache.zeppelin.interpreter.InterpreterException
public 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.AbstractInterpreter
org.apache.zeppelin.interpreter.InterpreterException
public void cancel(org.apache.zeppelin.interpreter.InterpreterContext context) throws org.apache.zeppelin.interpreter.InterpreterException
cancel
in class org.apache.zeppelin.interpreter.Interpreter
org.apache.zeppelin.interpreter.InterpreterException
public org.apache.zeppelin.interpreter.Interpreter.FormType getFormType()
getFormType
in class org.apache.zeppelin.interpreter.Interpreter
public int getProgress(org.apache.zeppelin.interpreter.InterpreterContext context) throws org.apache.zeppelin.interpreter.InterpreterException
getProgress
in class org.apache.zeppelin.interpreter.Interpreter
org.apache.zeppelin.interpreter.InterpreterException
public 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.AbstractInterpreter
public org.apache.zeppelin.interpreter.ZeppelinContext getZeppelinContext()
getZeppelinContext
in class org.apache.zeppelin.interpreter.AbstractInterpreter
Copyright © 2016–2020. All rights reserved.