Shreshth Gandhi
commited on
Commit
·
7b072d3
1
Parent(s):
80f172e
Hackathon instructions
Browse files- tutorials/hackathon_setup.md +82 -0
tutorials/hackathon_setup.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# 🐳 Minimal Jupyter via SSH + Docker (Lambda Cloud)
|
| 3 |
+
|
| 4 |
+
This guide sets up Jupyter running **inside a Docker container** on your Lambda Cloud instance and forwards it securely to your local machine — without using Lambda's built-in JupyterLab.
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
## ✅ 1. SSH into your Lambda instance
|
| 9 |
+
|
| 10 |
+
On your local machine:
|
| 11 |
+
|
| 12 |
+
```bash
|
| 13 |
+
ssh -i <YOUR_SSH_KEY_PATH> ubuntu@<INSTANCE_IP>
|
| 14 |
+
```
|
| 15 |
+
|
| 16 |
+
Replace `<YOUR_SSH_KEY_PATH>` with your private key path and `<INSTANCE_IP>` with your instance's IP address.
|
| 17 |
+
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
## ✅ 2. Start your Docker container with Jupyter
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
sudo docker run --gpus all --shm-size=64g -dit \
|
| 24 |
+
--name bionemo \
|
| 25 |
+
-p 8888:8888 \
|
| 26 |
+
-v /home/ubuntu/bionemo_workspace:/workspace \
|
| 27 |
+
nvcr.io/nvidia/clara/bionemo-framework:nightly
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
Enter the container:
|
| 31 |
+
|
| 32 |
+
```bash
|
| 33 |
+
sudo docker exec -it bionemo bash
|
| 34 |
+
```
|
| 35 |
+
|
| 36 |
+
---
|
| 37 |
+
|
| 38 |
+
## ✅ 3. Install Jupyter and other Python tools inside the container
|
| 39 |
+
|
| 40 |
+
Inside the container shell:
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
pip install jupyter rapids-singlecell
|
| 44 |
+
git clone -b tahoe-DGX-fix https://github.com/theislab/vevo_Tahoe_100m_analysis.git
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
Then launch Jupyter:
|
| 48 |
+
|
| 49 |
+
```bash
|
| 50 |
+
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
Note the access token printed in the terminal output (you’ll need it to log in).
|
| 54 |
+
|
| 55 |
+
---
|
| 56 |
+
|
| 57 |
+
## ✅ 4. Forward Jupyter port from remote to local
|
| 58 |
+
|
| 59 |
+
On your **local machine**, open a new terminal and run:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
ssh -i <YOUR_SSH_KEY_PATH> -L 8888:127.0.0.1:8888 ubuntu@<INSTANCE_IP>
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
Now visit:
|
| 66 |
+
|
| 67 |
+
```
|
| 68 |
+
http://localhost:8888/?token=<TOKEN>
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
Paste in the token you copied from the container output.
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## ✅ Optional cleanup
|
| 76 |
+
|
| 77 |
+
To stop and remove the container:
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
sudo docker stop bionemo
|
| 81 |
+
sudo docker rm bionemo
|
| 82 |
+
```
|