File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments