# Google Colab [fonte](https://amitness.com/2020/06/google-colaboratory-tips/) ## 1. Use seu Google Drive Para executar ou importar arquivos Python. ```python from google.colab import mount drive.mount('/content/gdrive') ``` ## 2. Baixe arquivos para seu ambiente local ```python from google.colab import files files.download('arquivo.txt') ``` ## 3. Criando pastas ```python !mkdir nome-da-pasta ``` ## 4. Instalar Bibliotecas Apesar da maioria das bibliotecas virem pré-instalas, algumas não tão comuns podem ser instaladas com: ```python !pip install torch ``` ## 5. Clonando um repositório GitHub ```python !git clone https://github.com/keras-team/keras.git ``` ## 6. Mudando o *working directory* ```python %cd new-folder ``` ## 7. Download de dados da web ```python !wget url ``` ## 8. Executando um script Python ```python !python run.py ``` ## 9. Reiniciar o Google Colab ```python !kill -9 -1 ```