-
Notifications
You must be signed in to change notification settings - Fork 1
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
Set up the icepyx gallery #1
Comments
This seems like a good idea. I recommend using this to setup a repository that builds an image with the minimal conda dependencies for icepyx https://github.com/jupyterhub/repo2docker-action |
@JessicaS11 , I can set up the repo. I'm assuming the only things that it will need are whatever I find in the example notebooks We will need to decide whose DockerHub credentials will be used for pushing the image (probably not mine). Also would be good to create an |
@salvis2 I think that should be good (what's in the import statements), unless we need to be more proactive for installing icepyx itself (currently that will need to be done with pip, as we're not on conda yet, so it could make sense to create the environment with needed dependencies. One of them is gdal, which tends to mess things up if you try to add it later). I'll look into creating an |
Per a suggestion by @scottyhq , I put in my own credentials and a place for an image to live under my username, and the build worked! https://github.com/salvis2/icepyx-examples-image/actions/runs/316625746 @JessicaS11 if you have credentials to put into the icepyx-gallery repo tomorrow, I'll use them to build the image and get to testing the gallery. I can test with my own image otherwise and we will just switch things later. |
So I tried building the notebooks and found out it doesn't have |
Fixed the |
Okay! We are getting to a good spot. The notebooks can launch with binder, start building, and import icepyx correctly at least. They are currently failing with different errors:
As far as that last one is concerned, the three modules here should be installed via |
This is looking great @salvis2! For the last issue, I think you're right that we can take those out since we've included those resources by default in the environment. That example was originally developed to be run on an older image that didn't have those modules. As for the other two, I'll admit I'm not entirely sure why the subsetting example is returning them but the data access example did not. Any thoughts on that? |
Ah well the first problem is that I pasted the wrong notebook name in second position. I've edited the comment to reflect this. So the data subsetting notebook fails because the email provided is literally The geometry file may not actually get to binder. The default setup of binderbot is to only clone files in the base repo and I while changed that for the GitHub Action, it may be a limitation for binder as well. There was another example where I had to put the data file into a notebook cell to get it to run. |
I'm trying a fix for the last notebook with the most obvious error but I don't think I will get all the notebooks building by myself. I'll set up a PR for all the files today and y'all can take it from here. I've opened up another issue #3 with brief instructions on finalizing the link between this repo and the gallery once everything else is ready. |
Just to follow up on this (after almost half a year). Am I correct in saying that the main issue is now having an email/password combination in the notebook to run the gallery example code? Was wondering if there's a way around the authentication issue, e.g. a way of caching the data or using an alternative authentication method (does NSIDC have API tokens)? |
This repo is meant to hold the usage example notebooks for
icepyx
. The original effort was to integrate this intoicepyx
, but there were some troubles, see the PR icesat2py/icepyx#125. I am currently working on setting up the functionality on my fork.The Pangeo Gallery is here. It has a contributor guide that I have been following to set up this repo.
Currently, I am stuck on image management. The image that we used for the IceSat-2 Hackweek is here, but has old, API-breaking changes that are not compatible with the current examples. @JessicaS11, @scottyhq, and I have been tossing around various solutions to this problem. We need a different image than previously used and I think there are two main solutions:
conda-lock
file for the icesat2 hackweek image and release a new tag. This doesn't interfere with the image for the Zenodo release and gets a new image that we know will work quickly, but it's not in the same place that icepyx people are working.icesat2py
org. This allows for minimizing the packages involved so the image is smaller / faster, is technically the right place for this image to live, whereicepyx
is being developed, and is independent of the hackweek, but will be more work.The text was updated successfully, but these errors were encountered: