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.
Upload the notebook to Google Colab.
Download the notebook as a Python file.
With the notebook open in JupyterHub, go to
File
->Download
->Download .py
.
Upload the Python file to Google Colab.
Click the
Files
icon in the sidebar.Click the
Upload to session storage
button.Select the
.py
file.
Put the following in a code cell and run it.
!apt-get install -y cloc > /dev/null !cloc --hide-rate --by-file *.py