Remote development enviroments like Google Colab & co

Here I explore how to use Google Colab.

usage of Colab Google with виртуальные машины and ПО|lower


GOOGLE COLAB

How to save files from internet to Google Colab

1. Try to

import urllib.request
urllib.request.urlretrieve('https://www.your_url_file_here', 'file_name_in_colab.png')

2. To create interface in Colab use >>> import gradio as gr

3. To use HF token:

from huggingface_hub import notebook_login

notebook_login()

4. Colab doesn't show any output. // It is a bug. Reload Colab or restart browser.

5. How to prevent inactivity stopping lifehack. In browser's consloe create JS script which would periodically push the button.

function ConnectButton(){

console.log("Connect pushed"); 

document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click() 

}

setInterval(ConnectButton,60000);

6.How to download file from Colab

from google.colab import files

files.download('your_file_with_path_here') 

 

WHICH COLAB ALTERNATIVES WE HAVE

KAGGLE

kaggle.com/code

6. While I want to import Notebook from Kaggle to GoogleColab I get an error ModuleNotFoundError: No module named 'learntools.core'

6.1. Install manually from github https://github.com/Kaggle/learntools -> unzip -> !pip3 install -e learntools-master/

 

GRADIENT

console.paperspace.com

 

STUDIO LAB

studiolab.sagemaker.aws

 

 

 

Azure AI

AWS Bedrock

Google Cloud Vertex AI Model Garden

Snowflake Cortex

IBM watsonx

Outscale