Created
June 6, 2023 18:39
-
-
Save danielduckworth/0a71155ae406b9cb891a731648b0930e to your computer and use it in GitHub Desktop.
Colab startup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz | |
sudo tar xvzf ngrok-v3-stable-linux-amd64.tgz -C /usr/local/bin | |
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && sudo apt update && sudo apt install ngrok | |
pip install jupyter_kernel_gateway | |
pip install torch -f https://download.pytorch.org/whl/cu113/torch_stable.html | |
pip install torchdata | |
pip install portalocker | |
pip install 'ludwig[full]' | |
# jupyter server password --generate-config | |
# echo "c.NotebookApp.password = u'sha1:${NOTEBOOK_PASSWORD}">>/root/.jupyter/jupyter_notebook_config.py | |
ngrok config add-authtoken ${NGROK_API_TOKEN} | |
jupyter kernelgateway --KernelGatewayApp.allow_credentials='*' --KernelGatewayApp.allow_headers='*' --KernelGatewayApp.allow_methods='*' --KernelGatewayApp.allow_origin='*' --KernelGatewayApp.auth_token=${KERNEL_GATEWAY_TOKEN} --NotebookHTTPPersonality.allow_notebook_download='True' --JupyterWebsocketPersonality.list_kernels='True' && \ | |
ngrok http --domain=colab.ngrok.dev 8888 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment