We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6555bd + f0afe3f commit 83c409aCopy full SHA for 83c409a
ads/aqua/cli.py
@@ -94,3 +94,18 @@ def _validate_value(flag, value):
94
"If you intend to chain a function call to the result, please separate the "
95
"flag and the subsequent function call with separator `-`."
96
)
97
+
98
+ @staticmethod
99
+ def install():
100
+ """Install ADS Aqua Extension from wheel file. Set enviroment variable `AQUA_EXTENSTION_PATH` to change the wheel file path.
101
102
+ Return
103
+ ------
104
+ int:
105
+ Installatation status.
106
+ """
107
+ import subprocess
108
109
+ wheel_file_path = os.environ.get("AQUA_EXTENSTION_PATH", "/ads/extension/adsjupyterlab_aqua_extension*.whl")
110
+ status = subprocess.run(f"pip install {wheel_file_path}",shell=True)
111
+ return status.check_returncode
0 commit comments