mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
update
This commit is contained in:
parent
fa36c5b997
commit
3c963b6b61
1 changed files with 4 additions and 0 deletions
|
|
@ -238,6 +238,7 @@ public class JupyterKernelInterpreter extends AbstractInterpreter {
|
|||
}
|
||||
|
||||
File bootstrapScriptFile = buildBootstrapScriptFile(kernelPort);
|
||||
LOGGER.info("Bootstrap script file: " + bootstrapScriptFile.getAbsolutePath());
|
||||
CommandLine cmd = CommandLine.parse(bootstrapScriptFile.getAbsolutePath());
|
||||
Map<String, String> envs = setupKernelEnv();
|
||||
jupyterKernelProcessLauncher = new JupyterKernelProcessLauncher(cmd, envs);
|
||||
|
|
@ -256,6 +257,9 @@ public class JupyterKernelInterpreter extends AbstractInterpreter {
|
|||
|
||||
private File buildBootstrapScriptFile(int kernelPort) throws IOException {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
if (condaEnv != null) {
|
||||
builder.append("source activate " + condaEnv + "/bin/activate\n");
|
||||
}
|
||||
builder.append(pythonExecutable);
|
||||
builder.append(" " + kernelWorkDir.getAbsolutePath() + "/kernel_server.py");
|
||||
builder.append(" " + getKernelName());
|
||||
|
|
|
|||
Loading…
Reference in a new issue