Final Project resources
Seee also: open-ended assignment information
To count the number of lines of code in a notebook:
{% if id == "nyu" -%}
-
Download the notebook.
-
Upload the notebook to Google Colab. {%- endif %}
-
Download the notebook as a Python file.
- With the notebook open in {{coding_env_name}}, go to
File
->Download
->Download .py
.
- With the notebook open in {{coding_env_name}}, go to
-
Upload the Python file to Google Colab{% if id == "columbia" %} (directly, not to Google Drive){% endif %}.
- Click the
Files
icon in the sidebar. - Click the
Upload to session storage
button. - Select the
.py
file.
- Click the
-
Put the following in a code cell and run it.
!apt-get install -y cloc > /dev/null !cloc --hide-rate --by-file *.py