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

Allow running Colab without preinstalled packages #4878

Open
florian98765 opened this issue Oct 3, 2024 · 1 comment
Open

Allow running Colab without preinstalled packages #4878

florian98765 opened this issue Oct 3, 2024 · 1 comment

Comments

@florian98765
Copy link

Is your feature request related to a problem? Please describe.
I am using Colab to run some pytorch examples. Installing using pip worked with the original version, but from time to time it leads to problems, since tensorflow is preinstalled with a different numpy version. In our CI we runs the demo in a clean virtual environment for testing that everything work. I would then like to be able to assure that the demos also run in Colab. But unfortunately, every now and then I realize the the demos are broken and need to do some workaround to fix some dependency problems.
Looking for a solution I found many posts / issues where people are asking for additional or newer versions of some preinstalled libraries.

Describe the solution you'd like
I would suggest to add an option to use Colab without any preinstalled libraries. In case of problems with the dependencies I could at least start with a clean environment.

Describe alternatives you've considered
I played around with a virtual environment inside of Colab, but this was always a bit unstable and complicates the demo code.
A more advanced feature would be to be able to provide the required dependencies via requirements.txt or something similar, but this would probably be much more complicated to implement.

Additional context
Add any other context, screenshots or notebooks about the feature request here.

@cperry-goog
Copy link

This is a fun idea. b/371199075 to track internally. Will never be the default, but could be a good advanced option.

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

No branches or pull requests

2 participants