Skip to content

Commit a729eed

Browse files
CLI to install aqua extenstion in Jupyterlab
1 parent 4b5ccb0 commit a729eed

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ads/aqua/cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,12 @@ def _validate_value(flag, value):
9494
"If you intend to chain a function call to the result, please separate the "
9595
"flag and the subsequent function call with separator `-`."
9696
)
97+
98+
@staticmethod
99+
def install_extension(path = "/ads/extension/"):
100+
import subprocess
101+
from pathlib import Path
102+
103+
wheel_file_path = Path(path) / f"adsjupyterlab_aqua_extension*.whl"
104+
status = subprocess.run(f"pip install {wheel_file_path}",shell=True)
105+
return status.check_returncode

0 commit comments

Comments
 (0)