mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
add conda env option on list
This commit is contained in:
parent
8dfb33b115
commit
9b79726947
1 changed files with 6 additions and 2 deletions
|
|
@ -235,8 +235,12 @@ public class PythonCondaInterpreter extends Interpreter {
|
|||
|
||||
private String runCondaList() throws IOException, InterruptedException {
|
||||
List<String> commands = new ArrayList<String>();
|
||||
commands.add("conda");
|
||||
commands.add("list");
|
||||
commands.add(0, "conda");
|
||||
commands.add(1, "list");
|
||||
if (!getCurrentCondaEnvName().isEmpty()) {
|
||||
commands.add(2, "-n");
|
||||
commands.add(3, getCurrentCondaEnvName());
|
||||
}
|
||||
|
||||
return runCondaCommandForTableOutput("Installed Package List", commands);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue