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

Colab repo #89

Open
hugobowne opened this issue Apr 11, 2020 · 3 comments
Open

Colab repo #89

hugobowne opened this issue Apr 11, 2020 · 3 comments

Comments

@hugobowne
Copy link
Collaborator

hey @ericmjl do you know any easy-ish way to create a colab for this repo?

Ideally, without needing to use google drive or anything like that?

e.g. for a single NB in a repo, i can just use the colab chrome extension -- like i did under the colab badges here

but i can't seem to figure out how to do it easily for a repo.

LMK if you know, bro!

@ericmjl
Copy link
Owner

ericmjl commented Apr 11, 2020

Colab's going to be a bit tricky. They don't support the installation methods that we are used to, as it presumes a fixed, ephemeral VM that you install packages into, with package installation commands as part of the notebook at the top. It's a bit "yucky" in my opinion. But I know where you're coming from - getting ready for the surge of users that will inevitably show up on Tuesday.

I think we could provide a Docker container that they can run locally. I'm in the midst of recording my PyCon tutorial, so for the day and possibly tomorrow, I might not have the bandwidth to handle it though. If you do, let me know, otherwise, I'd just default back to "follow HTML notebooks" on GitHub.

@hugobowne
Copy link
Collaborator Author

thanks, Eric. Colab worked incredibly well for my COVID-19 Live coding session last week: https://github.com/hugobowne/COVID-19-EDA-tutorial

But really only used pandas/matplotlib/altair.

our friends at binder helped then and may be able to help this time: jupyterhub/team-compass#276 (comment)

I think our conda/pip install instructions are good enough & i have made it clear in readme that learners should not expect binder to necessarily work -- if they want a guarantee, do local setup before the workshop (i've asked ODSC to tell them to do it at least a day before).

Let's not pull any docker stuff into master before this week's tutorial (i see we have an open issue here, which is great).

I'll leave this issue open as it will force me to either figure colab out or make a colab feature request or two. I think it would be reasonable to at least suggest the idea that colab achieve feature parity with binder on this (but not to expect that they'll prioritize it).

@Patch4747
Copy link

I worked with the notebooks/SciPy-2022/02-* files in Colab, and I had to make one notable tweak related to the pymc module.

In addition to a manual install (expected with Colab), I had to set an environment variable. Summarized below:

# must do this before importing pymc
!pip install pymc
%env MKL_THREADING_LAYER=GNU

# should be error-free now
import pymc

Solution taken from this issue: pymc-devs/pymc#5862

P.S. I am aware that Colab isn't the ideal space for this project. Still, I figured I'd share this in case anyone decides to use Colab and runs into this problem.

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

3 participants