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

Add "Open in Colab" badge to README #91

Open
rgerkin opened this issue Jan 9, 2019 · 2 comments
Open

Add "Open in Colab" badge to README #91

rgerkin opened this issue Jan 9, 2019 · 2 comments
Assignees

Comments

@rgerkin
Copy link
Contributor

rgerkin commented Jan 9, 2019

Google Colab now allows arbitrary notebooks to be opened in an interactive Colab session, e.g. see the badge here

@rgerkin rgerkin self-assigned this Jan 9, 2019
@rgerkin
Copy link
Contributor Author

rgerkin commented Jun 16, 2020

@ChihweiLHBird The goal here is for people to be able to open and run the notebooks right away without installing sciunit. We have been using Binder for this sort of thing, but it is has been unreliable. I would like to be able to open the same notebooks in Google Colab. The challenge is that Colab always starts from an environment that does not have sciunit installed. It is easy enough to add a !pip install sciunit at the top of any notebook, but I'm not sure that's best. The cell:

try:
  import google.colab
  IN_COLAB = True
except:
  IN_COLAB = False
if IN_COLAB:
  !pip install -q sciunit

I suppose could be added to the top of every notebook. Or maybe we should just assume that the user knows they will have to do !pip install sciunit at some point. Any thoughts?

@ChihweiLHBird
Copy link
Contributor

Fixed in #152

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