How to access Jupyter environment

1 Login

2 Working with Nbgrader

2.1 Fetching an Assignment

2.2 Note: Do not copy existing cells

2.3 Validate Notebook

2.4 Submitting an Assignment

3 (Optional) A Few Jupyter Notebook Basics

3.1 Python Notebook

3.2 Bash Notebook

3.3 Terminal

4 If Jupyter goes wrong …

5 I want to start over by re-fetching the assignment …

cd ~/notebooks/
mv pl00_intro pl00_intro_xxx
# Stop My Server -> Start My Server
# re-fetch
# transplant the work you need

6 I want to work with command line (SSH), not within Jupyter (web browser) …

6.1 How to set up for SSH login

6.1.1 A video for inpatients

6.1.2 Prepare an SSH key pair

your_computer$ cd ~/.ssh/
your_computer$ ls
id_ed25519 id_ed25519.pub
your_computer$ ssh-keygen

6.1.3 Uploading public key to Jupyter server

mkdir -p ~/.ssh/
cp ~/id_ed25519.pub ~/.ssh/authorized_keys
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
ls -ld ~/.ssh
ls -l ~/.ssh/authorized_keys
cat ~/.ssh/authorized_keys
drwx------ 2 u2xxxx u2xxxx 4096 Oct  4 22:19 /home/u2xxxx/.ssh
-rw------- 1 u2xxxx u2xxxx 394 Oct  4 22:19 /home/u2xxxx/.ssh/authorized_keys
ssh-ed25519 AAAAB3NzaC1yc2EAAAADAQABAAABAQC9s/2Uiy187pQvMNVwlNMRTSNFnvj9EVwOPx9/qLuiQg086zXFB2eugxTL1Pw+ViQ  ...  ... uB/TiOnA0e6KDpU2h4 
=== BEGIN SSH2 PUBLIC KEY ===
gakjjkgdslkjgkljkjdakjdakljdkff
tuireuproeqiutreiurewuriouoweu0
      ...

=== END SSH2 PUBLIC KEY ===

6.1.4 Checking if you are able to login with SSH

your_computer$ ssh u2xxxxx@server_name
whoami
your_computer$ ssh u2xxxx@server_name
Welcome to Ubuntu 20.04.3 LTS (GNU/Linux 4.15.0-1054-aws x86_64)

 * Documentation:  https://help.ubuntu.com

   ..nn.

Last login: Sun Dec 15 16:29:26 2019 from 111.99.149.67
$ 

7 Using VSCode Remote Extension