File > Open ...
- Launch new terminal instance:
New > Terminal
- tarball the folder:
tar czvhf coursera.tar.gz *
- a. split it (usually this file might be too large for your instance to allow download)
split -b 500M -d coursera.tar.gz coursera.
File > Open ...
New > Terminal
tar czvhf coursera.tar.gz *
split -b 500M -d coursera.tar.gz coursera.
From an open Jupyter Notebook homework assignment, select "Coursera" to take you to the home page. Make a new notebook and fill it with the following and excute the cell with:
%%bash
tar cvfz hw.tar.gz .
This may take a little while to run depending on the packages. Select "Coursera" again to take you to the Home directory. Check the hw.tar.gz file and then Download. After the file is downloaded, delete it.
from collections import defaultdict | |
from heapq import * | |
def dijkstra(edges, f, t): | |
g = defaultdict(list) | |
for l,r,c in edges: | |
g[l].append((c,r)) | |
q, seen, mins = [(0,f,())], set(), {f: 0} | |
while q: |