![JAR search and dependency download from the Maven repository](/logo.png)
com.github.sh0nk.matplotlib4j.PythonConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matplotlib4j Show documentation
Show all versions of matplotlib4j Show documentation
Matplotlib for java: A simple graph plot library for java with powerful python matplotlib
package com.github.sh0nk.matplotlib4j;
public class PythonConfig {
private final String pyenv;
private final String virtualenv;
private final String pythonBinPath;
private PythonConfig(String pyenv, String virtualenv, String pythonBinPath) {
this.pyenv = pyenv;
this.virtualenv = virtualenv;
this.pythonBinPath = pythonBinPath;
}
public static PythonConfig systemDefaultPythonConfig() {
return new PythonConfig(null, null, null);
}
public static PythonConfig pyenvConfig(String pyenv) {
return new PythonConfig(pyenv, null, null);
}
public static PythonConfig pyenvVirtualenvConfig(String pyenv, String virtualenv) {
return new PythonConfig(pyenv, virtualenv, null);
}
public static PythonConfig pythonBinPathConfig(String pythonBinPath) {
return new PythonConfig(null, null, pythonBinPath);
}
public String getPyenv() {
return pyenv;
}
public String getVirtualenv() {
return virtualenv;
}
public String getPythonBinPath() {
return pythonBinPath;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy