Skip to content

Commit c2e37cb

Browse files
authored
Document Jupyter setup on AWS EC2
Added instructions for running Jupyter on an AWS EC2 VM, including installation and security group configuration.
1 parent 200e69d commit c2e37cb

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

ai/aws.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,3 +346,38 @@ if current_model == "DistilBERT":
346346

347347

348348

349+
# Running Jupyter on an AWS EC2 VM
350+
351+
352+
This uses port forwarding: From a laptop to the
353+
EC2 VM running Jupyter Lab. One can also use an `ssh` tunnel,
354+
more secure. Also more secure: Modifying the communication
355+
protocol to `https`.
356+
357+
358+
- `pip3 install jupyter`
359+
- `cd ~; git clone https://github.com/robfatland/ant`
360+
- `jupyter lab --ip=0.0.0.0 --port=8888 --no-browser`
361+
- probably not necessary to append `--allow-root`
362+
- as the Jupyter Lab spins up (lots of print): Note the long token string
363+
- In the laptop browser address bar type in `http://<EC2-public-ip-address>:8888/
364+
- Paste the token string from above
365+
366+
367+
### If the preceding is not working...
368+
369+
370+
The EC2 VM may not be configured for inbound http traffic on port 8888.
371+
372+
373+
- Open the AWS console to add an inbound rule to the VM's security group
374+
- Type: Custom TCP
375+
- Port: 8888
376+
- Source: Your IP address (or 0.0.0.0/0 for any IP)
377+
378+
379+
380+
381+
382+
383+

0 commit comments

Comments
 (0)