This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Download a file to Local System from Colab | |
from google.colab import files | |
with open('example.txt', 'w') as f: | |
f.write('some content') | |
files.download('example.txt') | |
#====================================================================================================== | |
#upload file to Colab from Local System | |
from google.colab import files | |
uploaded = files.upload() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Data | |
*.csv | |
*.png | |
*.jpg | |
*.jpeg | |
*.json | |
# Byte-compiled / optimized / DLL files | |
__pycache__/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create_conda_env() { | |
# Check if the environment name and Python version are provided as arguments | |
if [ $# -lt 2 ]; then | |
echo "Please provide the conda environment name and Python version as arguments." | |
return 1 | |
fi | |
# Create conda environment with the specified Python version | |
conda create -n "$1" "$2" |
OlderNewer