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

mybinder.org sagemath does not work any more #9

Closed
dimpase opened this issue Nov 20, 2020 · 7 comments
Closed

mybinder.org sagemath does not work any more #9

dimpase opened this issue Nov 20, 2020 · 7 comments

Comments

@dimpase
Copy link
Member

dimpase commented Nov 20, 2020

https://mybinder.org/v2/gh/sagemath/more-sagemath-tutorials/master?filepath=_build/html/tutorial-start-here.ipynb

errors out.

@mmosmond
Copy link

mmosmond commented Oct 6, 2021

It seems like this is still/again an issue? My SageMath notebooks via mybinder are also failing over at https://github.com/mmosmond/eeb430. Any ideas what is going on? Everything was working fine in early September but stopped working later in the month. Some updates have broken things? See also calculuslab/Calculus_Lab#1

@dimpase
Copy link
Member Author

dimpase commented Oct 6, 2021

IMHO it's not us, it's mybinder that's guilty here. Maybe @betatim knows...

@betatim
Copy link

betatim commented Oct 12, 2021

Have a look at jupyterhub/binderhub#1409 (comment) and the forum threads. It seems likely that this is because of the recent changes to use jupyterlab by default on mybinder.org.

@behackl
Copy link
Member

behackl commented Nov 16, 2022

While there is a conda-based approach for SageMath + mybinder by now, I still wonder what exactly it is that causes mybinder to fail starting the environment when using a simple Dockerfile like

FROM sagemath/sagemath:9.7
COPY --chown=sage:sage . .

I played around with the setup a bit and found something somewhat odd: if we don't use the jupyter / notebook installed to SageMath's venv, but instead install Python 3 and notebook separately, it is possible to use the Docker image: with the Dockerfile provided at https://gist.github.com/behackl/a5d25c901ec557565f99331b130f09a2 (apologies, it's not particularly pretty) the mybinder environment does start up normally and the kernel works as expected (as far as I could tell): Binder

Why? Is there some notebook setting that is overwritten or changed in our venv that clashes with how mybinder creates the environment? I'll also share this with sage-devel, perhaps someone has an idea about this. (Edit: done.)

@dimpase
Copy link
Member Author

dimpase commented Nov 17, 2022

IMHO Sage should not vendor Jupyter in the 1st place.

Note that even not vendoring gcc is still open, cf https://trac.sagemath.org/ticket/32532 - where I propose the remove the capacity to build gcc, retaining the capacity to build gfortran.

@behackl
Copy link
Member

behackl commented Nov 17, 2022

IMHO Sage should not vendor Jupyter in the 1st place.

It is nice that sage -n jupyter just works, but I am not sure whether it is necessary to actually vendor notebook for that. I suppose it might be possible for sage to do something intelligent regarding looking for Jupyter installed on the system side and linking its kernel to it, but if it isn't it could still be installed in Sage's venv.

My best guess at this point is that either Sage ships with some specific setting that makes the notebook server unresponsive when started by mybinder (none of the settings feel like they could be responsible though; but that's something that could be tested) -- or mybinder is not happy with its bash commands being executed via sage -sh -c.

Note that even not vendoring gcc is still open, cf https://trac.sagemath.org/ticket/32532 - where I propose the remove the capacity to build gcc, retaining the capacity to build gfortran.

I'm not familiar with the build toolchain well enough to make a meaningful comment about it, but I don't find it unlikely that this discussion might be easier with packages that have a little less, well, gravitas.

@dimpase
Copy link
Member Author

dimpase commented Sep 9, 2023

fixed by #16

@dimpase dimpase closed this as completed Sep 9, 2023
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

4 participants