problems with mybinder requirements.txt #190
-
Hi everyone, I somehow can't get interactivity via Thebe/Binder to work. I followed the ínstructions in "Launch buttons for interactivity". It did not say where to put the requirements.txt, so I checked how it was done in https://github.com/executablebooks/jupyter-book. I mimicked that for my repo, but when I click the Binder link in my jupyter book on this section it takes me to a "non-working" Binder: When I execute the notebook it says that the numpy import failed. Can someone tell me what I am doing wrong? Is it something obvious? If not, is something wrong with my ipynb file? Maybe the metadata or something? Regarding the requirements.txt: I do my actual requirements managing with conda, that is why there is an environment.yml file in the "book" folder (for github actions workflow). For Binder I do not need all the stuff from my conda environment: pytorch is in my environment.yml, but the section where I want "Thebe"-interactivity on my web page only needs numpy+matplotlib. That is why I just copied the content of the requirements.txt from the docs folder of the jupyter-book repo . I would be really grateful for some help :) P.S.: I really love jupyter book. Keep up the great work :)! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
hi @thomasfermi -- do you know if your repository builds directly with mybinder.org? The jupyter-book If you haven't tried this -- I would start there to see if the project is building by adding in the link to your repository, branch etc. and then click on launch. https://mybinder.readthedocs.io/en/latest/introduction.html#build-your-repository Please let me know how you go. |
Beta Was this translation helpful? Give feedback.
hi @thomasfermi -- do you know if your repository builds directly with mybinder.org? The jupyter-book
binder
setup is contained in.binder
at the root level of the repository. It looks like you have putrequirements.txt
inbooks
and I don' think binder would find it in that location.If you haven't tried this -- I would start there to see if the project is building by adding in the link to your repository, branch etc. and then click on launch. https://mybinder.readthedocs.io/en/latest/introduction.html#build-your-repository
Please let me know how you go.