-
Notifications
You must be signed in to change notification settings - Fork 207
Consider adding links to Google colab? #411
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
Comments
If we can get around the dependencies issue, it would be awesome. I find it is good to provide several alternatives for computation. Ping @jakevdp, who works on the collab team, I believe, who can maybe help us with the dependencies. |
+1 for making it possible my only hesitation is that the collab isn't open source and only works on google, but I agree many people would find this useful! |
As far as I know there's no way to automatically install dependencies in Colab at the moment... you basically get a Python 2 or Python 3 kernel, pre-loaded with the provided environment (which contains the core Python data science stack). For supporting custom environments, Binder is a good option. I've put badges for both on my book repo, if you want to compare both in practice: https://github.com/jakevdp/PythonDataScienceHandbook |
note that I don't believe that @jakevdp 's Binder link works currently until either https://github.com/jakevdp/PythonDataScienceHandbook/pull/144/files or https://github.com/jakevdp/PythonDataScienceHandbook/pull/117/files is merged. The current I think it works in Collab because it doesn't let you define your own environment...I suppose this is the package environment version of the bias/variance tradeoff :-) |
Yeah, I'm not sure what to do about that because some of the examples in the book don't work correctly with the newer version of skimage... |
hmmm, I think if you used Python 3.5 that'd work fine...maybe we could specify this with an environment.yml file? |
@jakevdp would the problem be solved with scikit-image 0.14? |
@emmanuelle thanks for the tip - I actually got this fixed in this PR: jakevdp/PythonDataScienceHandbook#145 shoulda updated this issue, sorry :-) |
It's been some time, I'm not sure if its relevant, but perhaps adding some cells for installing all the additional requirements at the start of the notebook could be helpful to create a new notebook specific for collab right? I see this is sorta done already in scikit-learn although for jupyterlite. Is this a viable option? This could be very useful for us at mri-nufft, where we have codes in 2D that can run on CPU, but 3D codes need a GPU to have viable run times in examples. |
Does https://sphinx-gallery.github.io/stable/configuration.html#own-notebook-cell solve this problem? |
Ah good old days π, I guess #25 was even older and was implemented recently in #877 so hope may be an option π. I guess there are two separate things here:
Side-comments:
|
Indeed this is what I was hoping to use it.
Well it was very useful anyways!
I can come up with a PR for it.
Well, I think just an initial cell with
Thats a great intermediate solution for now!
I guess it is a bit easier for them as pytorch is already installed in collab. So they only need the badge. |
Uh oh!
There was an error while loading. Please reload this page.
Just a thought (IIRC I saw that in a semi-recent tweet by Jake van der Plas) if you a notebook on github e.g.: https://github.com/sphinx-gallery/sphinx-gallery.github.io/blob/master/notebooks/auto_examples/sin_func/plot_sin.ipynb
You can prepend
https://colab.research.google.com/github
and get a Google Colab link:https://colab.research.google.com/github/sphinx-gallery/sphinx-gallery.github.io/blob/master/notebooks/auto_examples/sin_func/plot_sin.ipynb
Potential problems:
The text was updated successfully, but these errors were encountered: