Skip to content

update scikit-image dependency #117

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

Closed
wants to merge 1 commit into from
Closed

Conversation

choldgraf
Copy link
Contributor

There's a bug that's been introduced with an interaction between python 3.6, numpy, and the version of scikit-image that's pinned here. This should fix that, and AFAICT skimage actually isn't used in the notebooks, so this upgrade shouldn't be breaking yeah?

https://github.com/jakevdp/PythonDataScienceHandbook/search?utf8=%E2%9C%93&q=skimage&type=

would fix #108

There's a bug that's been introduced with an interaction between python 3.6, numpy, and the version of scikit-image that's pinned here. This should fix that, and AFAICT `skimage` actually isn't used in the notebooks, so this upgrade shouldn't be breaking yeah? 

https://github.com/jakevdp/PythonDataScienceHandbook/search?utf8=%E2%9C%93&q=skimage&type=

would fix jakevdp#108
@yuvipanda
Copy link

Gentlest of bumps :)

@jakevdp
Copy link
Owner

jakevdp commented Feb 1, 2018

The new version of scikit-image changed the default behavior of skimage.feature.hog in a way that substantially changes the results of the final section of the book. I'm going to wait until I have time to understand that more before I bump the dependency.

@choldgraf
Copy link
Contributor Author

gah that's annoying...hmm, it looks like here's the deprecation message related to hog: https://github.com/scikit-image/scikit-image/blob/master/doc/release/release_0.13.rst#deprecations

@baldwint baldwint mentioned this pull request Jun 23, 2018
hlapp added a commit to Reproducible-Science-Curriculum/sharing-RR-Jupyter that referenced this pull request Aug 15, 2018
The Mybinder.org link for Jake van der Plas' Python Data Science Handbook
(PDSH) is currently broken (and has been for a while: jakevdp/PythonDataScienceHandbook#108).
The root of the problem is an incompatibility between the version of
scikit-image stated in the requirements.txt and the 3.6+ version of Python.
Upgrading the scikit-image requirement has been stalled for > 6 months
(see jakevdp/PythonDataScienceHandbook#117). The alternative is to force the
Python runtime to Python 3.5, which is what one fork did:
baldwint/PythonDataScienceHandbook@b233490

Here we're commenting out the link that we'd really want but that's broken
(bad for learners), and instead use the link that uses the aforementioned
fork.

This obviously has to be a temporary fix only. Currently there is no sign
that the problem will be fixed in the original repo by merging
jakevdp/PythonDataScienceHandbook#117. One more long-term reliable solution
to this could be to fork the original repo here and apply the same (trivial)
fix as in the aforementioned fork. Alternatively, we may consider switching
to another example.
hlapp added a commit to Reproducible-Science-Curriculum/sharing-RR-Jupyter that referenced this pull request Aug 15, 2018
The Mybinder.org link for Jake van der Plas' Python Data Science Handbook
(PDSH) is currently broken (and has been for a while: jakevdp/PythonDataScienceHandbook#108).
The root of the problem is an incompatibility between the version of
scikit-image stated in the requirements.txt and the 3.6+ version of Python.
Upgrading the scikit-image requirement has been stalled for > 6 months
(see jakevdp/PythonDataScienceHandbook#117). The alternative is to force the
Python runtime to Python 3.5, which is what one fork did:
baldwint/PythonDataScienceHandbook@b233490

We could switch to this fork, but this obviously would have to be a temporary
fix only, and would almost be guaranteed to break again in the future.
Currently there is no sign that the problem will be fixed in the original
repo by merging jakevdp/PythonDataScienceHandbook#117.

So instead of using a temporary fix and/or waiting for whenever the original
repo will be fixed, this proposal switches to a notebooke "of our own",
which has the advantages of having only few and relatively common dependencies,
and being one that the learners just worked through, and now get to see a
live-shared version of.
@jakevdp
Copy link
Owner

jakevdp commented Aug 29, 2018

Is there any way to keep the old skimage and allow the binder to actually build?

@choldgraf
Copy link
Contributor Author

closing this since it was fixed in #145 !

@choldgraf
Copy link
Contributor Author

(though note that the underlying python 3.6/numpy/scikit-image bug is still there...)

@choldgraf choldgraf closed this Aug 31, 2018
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.

Python 3.6, old scikit-image and numpy. Install from requirements.txt fails.
3 participants