Final Project resources#
Seee also: open-ended assignment information
Counting lines of code#
To count the number of lines of code in a notebook:
Download the notebook as a Python file.
With the notebook open in Google Colab, go to
File->Download->Download .py.
Upload the Python file to Google Colab (directly, not to Google Drive).
Click the
Filesicon in the sidebar.Click the
Upload to session storagebutton.Select the
.pyfile.
Put the following in a code cell and run it.
!apt-get install -y cloc > /dev/null !cloc --hide-rate --by-file *.py