Skip to content

Commit

Permalink
feature: Add jupyter-idle extension (aws#453)
Browse files Browse the repository at this point in the history
Co-authored-by: Clayton Parnell <[email protected]>
  • Loading branch information
rahrad123 and claytonparnell authored Jul 11, 2024
1 parent 497d59f commit 99db206
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Add any additional packages here
conda-forge::mlflow[version='>=2.13.2,<3.0']
conda-forge::sagemaker-mlflow[version='>=0.1.0,<1.0']
conda-forge::jupyter-activity-monitor-extension[version'>=0.1.0,<1.0']
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#Add any additional packages here
conda-forge::mlflow[version='>=2.13.2,<3.0']
conda-forge::sagemaker-mlflow[version='>=0.1.0,<1.0']
conda-forge::jupyter-activity-monitor-extension[version'>=0.1.0,<1.0']
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG SAGEMAKER_DISTRIBUTION_IMAGE
FROM $SAGEMAKER_DISTRIBUTION_IMAGE

ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN micromamba install pytest --freeze-installed --yes --channel conda-forge --name base
RUN micromamba install pytest-jupyter --freeze-installed --yes --channel conda-forge --name base
RUN SITE_PACKAGES=$(pip show jupyter-activity-monitor-extension | grep Location | awk '{print $2}') && \
cd "$SITE_PACKAGES/jupyter_activity_monitor_extension/tests/" && pytest -p pytest_jupyter.jupyter_server
2 changes: 2 additions & 0 deletions test/test_dockerfile_based_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
("serve.test.Dockerfile", ["serve-langchain"]),
("langchain-aws.test.Dockerfile", ["langchain-aws"]),
("mlflow.test.Dockerfile", ["mlflow"]),
("jupyter-activity-monitor-extension.test.Dockerfile", ["jupyter-activity-monitor-extension"]),
],
)
def test_dockerfiles_for_cpu(
Expand Down Expand Up @@ -86,6 +87,7 @@ def test_dockerfiles_for_cpu(
("langchain-aws.test.Dockerfile", ["langchain-aws"]),
("mlflow.test.Dockerfile", ["mlflow"]),
("sagemaker-mlflow.test.Dockerfile", ["sagemaker-mlflow"]),
("jupyter-activity-monitor-extension.test.Dockerfile", ["jupyter-activity-monitor-extension"]),
("gpu-dependencies.test.Dockerfile", ["pytorch", "tensorflow"]),
],
)
Expand Down

0 comments on commit 99db206

Please sign in to comment.