Skip to content

Instantly share code, notes, and snippets.

@ronsims2
Last active June 28, 2022 01:34
Show Gist options
  • Save ronsims2/8620114f7c87ee95c9fe13b8e756d973 to your computer and use it in GitHub Desktop.
Save ronsims2/8620114f7c87ee95c9fe13b8e756d973 to your computer and use it in GitHub Desktop.
Useful Colab/Jupyter Notebook Tricks
from google.colab import drive, files
drive.mount('/content/drive')
file_root = '/content/drive/MyDrive/Colab Notebooks/week_3/'
# The command below will list everything in the specified folder.
# Notice the statement converts the python variable into a shell variable if you prepend a "$"
%ls "$file_root"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment