Skip to content

Commit

Permalink
Merge pull request #46 from aswathsr101/main
Browse files Browse the repository at this point in the history
LCC examples for Studio Classic space
  • Loading branch information
durgasury authored May 9, 2024
2 parents c0ef3df + 8935740 commit 96b1805
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Lifecycle Configurations for [Studio Classic](https://docs.aws.amazon.com/sagema
* [install-autoshutdown-server-extension](scripts/install-autoshutdown-server-extension) (Recommended) - Installs only the server part of idle-kernel shutdown extension. No external dependencies to install, recommended to use in VPCOnly mode with restricted Internet connectivity. Idle timelimit has to be set using Life Cycle Configuration script.
* [install-autoshutdown-extension](scripts/install-autoshutdown-extension) - Installs the auto idle-kernel shutdown extension on the Jupyter Server. This install allows users to set idle timeout limit using the UI. ***Note***: *The UI plugin is only compatible with JupyterLab v1.0. See [JupyterLab versioning](https://docs.aws.amazon.com/sagemaker/latest/dg/studio-jl.html) for JupyterLab versions in SageMaker Studio.*
* [install-lsp-features](scripts/install-lsp-features) - Installs coding assistance tools to enable features like auto-completion, linting, and hover suggestions in Studio JupyterLab v3+.
* [[install-packages-using-conda-forge](scripts/install-packages-using-conda-forge)] - Installs packages using conda-forge channels and uses MAMBA to install them.
* [disable-automatic-kernel-start](disable-automatic-kernel-start) - Disables automatic starting of kernel when opening notebooks. Only works with Studio JupyterLab v3.3+.
* [install-pip-package-on-kernel](scripts/install-pip-package-on-kernel) - Installs a python package with pip on a Studio Kernel
* [set-git-config](scripts/set-git-config) - This script sets the username and email address in Git config.
Expand Down
11 changes: 11 additions & 0 deletions scripts/install-packages-using-conda-forge/on-kernel-start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This script installs a single conda-forge package on a SageMaker Studio Kernel Application using mamba for Data Science 3.0 and Data Science 2.0 Images
#!/bin/bash

set -eux

#sets the environment channels to conda-forge package repositories
conda config --add channels conda-forge
conda config --set channel_priority strict

# Install packages using Conda-Forge with mamba
nohup mamba install pypots -y
2 changes: 1 addition & 1 deletion scripts/install-pip-package-on-kernel/on-kernel-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ set -eux
# PARAMETERS
PACKAGE=pyarrow

pip install --upgrade $PACKAGE
pip3 install --upgrade $PACKAGE

0 comments on commit 96b1805

Please sign in to comment.