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

install_from_local()? #13

Open
gabegomes opened this issue Sep 1, 2021 · 3 comments
Open

install_from_local()? #13

gabegomes opened this issue Sep 1, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@gabegomes
Copy link

Thanks for creating condacolab! I was wondering if you thought about the possibility of installing from a local .sh file that one could keep in their Google Drive. That way there would be no need for downloading from another location. That would be cool for some of the things I'm planning to use in a class I'll be teaching in the Spring. Cheers!

@jaimergp
Copy link
Member

jaimergp commented Sep 1, 2021

Hi! Thanks for the kind words!

I think you might be able to fool the download code path by prepending file:// to the actual path. Maybe not. We can add this, but there's no such thing as "local" in Colab. Everything is a download if it wasn't present in their image already. If you do want to try in a fork and get some timings, this is the part that needs to be modified.

If you want to cache stuff, I usually recommend creating a constructor-based installer. Instructions were added to the README here. I upload mine to GitHub releases in a separate repo and the downloads are as fast as they get.

@NightMachinery
Copy link

@jaimergp The local install is useful with Google Drive.

@jaimergp
Copy link
Member

jaimergp commented Oct 4, 2022

It might be interesting for private installers that cannot be made available publicly. It can be done!

@jaimergp jaimergp added the enhancement New feature or request label Oct 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants