Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this break Colab's TOS? #1

Closed
bitsnaps opened this issue Apr 4, 2024 · 2 comments
Closed

Does this break Colab's TOS? #1

bitsnaps opened this issue Apr 4, 2024 · 2 comments

Comments

@bitsnaps
Copy link

bitsnaps commented Apr 4, 2024

Hi,

This is the only working solution which runs without warning on colab, however I'm not sure how did I fix this localtunnel's issue, either by providing the password or the public IP:

# a password is stored here:
!cat ~/.config/code-server/config.yaml

import urllib
# get public IP address
urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip("\n")

Using ngrok is not allowed since it uses public tunnels which is against colab's rules, so does this solution break any Google Colab's TOS so far?

@amitness
Copy link
Owner

amitness commented Apr 4, 2024

@bitsnaps Looks like it's against the TOS if you're using the free version. They say that they just terminate the runtime randomly.

It's allowed if you purchase the Colab pro subscription.

The following are disallowed from managed Colab runtimes running free of charge, without a positive Colab compute unit balance, and may be terminated at any time without warning:

remote control such as SSH shells, remote desktops
bypassing the notebook UI to interact primarily via a web UI
chess training
running distributed computing workers

You can remove these types of restrictions by purchasing one of our paid plans here and maintaining a positive compute unit balance. You may find not all runtimes that match the descriptions are terminated; we attempt to support as much as we can within reason to benefit the global community.

@amitness amitness closed this as completed Apr 4, 2024
@amitness
Copy link
Owner

amitness commented Apr 4, 2024

The warning occurs because they block packages like this using regex against the package name.

If someone just forks this repo and installs using below command, it would work. Someone could also rename their repo if the name colab-cloud gets blocked.

pip install git+https://github.com/{YOUR_USERNAME_HERE}/colab-cloud

But, please use this at your own risk. I created this repo just as a proof of concept.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants