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

Fix binder support by adding torchvision, torchtest, and opencv to environment.yml #5

Merged
merged 2 commits into from Feb 5, 2019

Conversation

matthewfeickert
Copy link
Contributor

@matthewfeickert matthewfeickert commented Jan 31, 2019

Hi @Atcold. I was recently recommending your minicourse but I saw that as the result of recent course development the Binder for it is broken. Specifically, torchvision and torchtext are now used and are not part of the current environment.yml. In addition, in Notebook 10 opencv is used. In the notebook you install it in the environment using Jupyter shell magics, but this can't be done in Binder as the user doesn't have access to conda once they are in the built image. To fix this opencv is added to environment.yml and an apt.txt file is added which contains libgl1-mesa-glx for Binder to install with apt-get to provide some of the OS libraries that opencv needs.

Please let me know your thoughts on all of this and if you would like any of these changes (or none of them). If you want to try out the new environment in Binder you can try the image built from my fork (edit: as I deleted my branch this is now the Binder of master): Binder

As these are required dependancies in the Jupyter notebooks they are
needed. Have Binder install libgl1-mesa-glx from apt.txt to add support
for opencv.

This also fixes Binder being broken.
@Atcold
Copy link
Owner

Atcold commented Jan 31, 2019

Sweet, thanks. Merging.
Cc: @ritchieng.

@Atcold Atcold closed this Jan 31, 2019
@matthewfeickert
Copy link
Contributor Author

@Atcold @ritchieng My apologies if I misunderstood what you were going for, but you closed the PR instead of merging it.

@Atcold Atcold reopened this Feb 5, 2019
@Atcold Atcold merged commit 472dec8 into Atcold:master Feb 5, 2019
@Atcold
Copy link
Owner

Atcold commented Feb 5, 2019

My bad, @matthewfeickert. I got confused by the phone mobile interface.

@matthewfeickert matthewfeickert deleted the fix/fix-Binder-support branch February 5, 2019 07:03
@matthewfeickert
Copy link
Contributor Author

No worries!

Atcold pushed a commit that referenced this pull request Jul 24, 2020
updating from the orginal repo
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

Successfully merging this pull request may close these issues.

None yet

2 participants