This repository is aimed for providing scripts and documentation for setting up custom tools on top of Amorphic Notebooks.
Open a Jupyter notebook terminal, and run the following commands. The setup takes typically under 10 minutes. Choose if you want to use automatically the latest release or a specific one.
# use the latest
export notebook_utils_release_latest=$(curl -s https://api.github.com/repos/cloudwicklabs/cloudwick-notebook-utils/releases/latest | grep '"tag_name":' | cut -d '"' -f 4)
# or use a specific release
export notebook_utils_release="cnu-0.1.8"
curl -LO https://github.com/cloudwicklabs/cloudwick-notebook-utils/archive/refs/tags/${notebook_utils_release}.tar.gz
tar -xvzf ${notebook_utils_release}.tar.gz
nohup sudo -u ec2-user /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/python cloudwick-notebook-utils-${notebook_utils_release}/code-server/notebook-instances/code-server-setup.py &
code_server_setup_pid=$!
# ... other code goes here
wait $code_server_setup_pid
echo "code_server_setup.py has finished!"
# for non dockerized jupyter servers
sudo systemctl restart jupyter-server
To set up VSCode via the Lifecycle policies of the Notebook, you can simply create Lifecycle and add the code above.
You may find sample Lifecycle policies for vscode-with-glue for start-up here and for on-create here.