ProjectPythia / pythia-foundations

Jupyterbook source for the Foundations collection
http://foundations.projectpythia.org
Apache License 2.0
59 stars 42 forks source link

Problems Running content on Binder #402

Closed MGomezN closed 6 months ago

MGomezN commented 1 year ago

Hello!

We are using its content as introductory material to Python for our students. For the newer participants with no previous programming experience, we thought of instructing them to run the lessons in Binder. However, we have noticed that this option is not working right now. Whenever we try to access it, we get different errors.

Searching on the web, we see there are general problems with Binder. They ran out of funding a month ago and reduced capacity https://blog.jupyter.org/mybinder-org-reducing-capacity-c93ccfc6413f

We want to inform you about the issue.

What happened: Having problems running the project Pythia notebooks in Binder

What you expected to happen: "Select “Launch Binder”. After a moment you should be presented with a notebook that you can interact with."

brian-rose commented 1 year ago

Hi @MGomezN thanks for this report!

We are actually spinning up a custom Binder service to support Pythia content. It will work like mybinder.org but have much better capacity, though it will require authentication via GitHub. We may be putting out updated instructions about this later this week.

MGomezN commented 1 year ago

Thanks for your quick reply @brian-rose! happy to know you will have a replacement option. Meanwhile, maybe an announcement banner can help the users don't panic?

brian-rose commented 1 year ago

Actually we have just now deployed Pythia Foundations on the new Binder!

If you try any of the "Rocket Ship" launch icons on Foundations pages, e.g. at the top right of this page, it will take you to the new Pythia Binder.

There is a brief authentication step via a GitHub user profile, then you should have full interactive use of all the notebooks in the Foundations book.

We need to update the instructions as noted in #404

MGomezN commented 1 year ago

Dear @brian-rose

Yesterday I was able to run the code using the "Rocket Ship", but right now is not possible. I tried with Chrome and Firefox closing all windows and clearing the cache. I still got the same error (see image below) Any advice? Thanks! image

brian-rose commented 1 year ago

Currently the binder is restricted to one session per user.

If you visit https://hub.projectpythia.org and use your GitHub login credentials, you should see a red button "Stop My Server". That will kill the old session that is still running. You should then find that you can launch a new Binder session.

Thanks for testing this out, it will help us develop some useful instructions for users!

MGomezN commented 1 year ago

Thank you, @brian-rose!

I see now the authentification is disabled due to your hackathon :) We will keep an eye on the new changes and are happy to contribute! Our students are going to receive an email today with instructions to use Pythia Foundations Book to learn Python 😄, so they can be prepared to take the most out of our course Computational Tools for Climate Science

brian-rose commented 1 year ago

@MGomezN great! That's great to know that the Pythia binder may help support the Climatematch academy. We might reach out at some point to gather information about usage which will help in our next round of funding for the binder service.

There may be a few outages here and there with the binder as we make necessary adjustments before, during, and after our hackathon. And we do expect to reenable the authentication requirement after the hackathon. Reach out if you have questions!

Reach out if you have any questions.

erogluorhan commented 6 months ago

Hi @MGomezN , I just wanted to check in with you to see if everything on your end is good with Pythia and Binder. If so, I'd like to close this issue; otherwise, we are happy to help!

erogluorhan commented 6 months ago

Hi @MGomezN , I just wanted to check in with you to see if everything on your end is good with Pythia and Binder. If so, I'd like to close this issue; otherwise, we are happy to help!

Closing this now; please feel free to reopen it if you need.