-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add expect exception back in #73
Conversation
To clarify, the advantage of having expect exception that you see the full exception as it would happen if a user made the same "mistake" on their machine, right? Seems useful. I still think we could just drop the folder from the project in the notebooks directory, along with their Readme and License file. |
hmm, I am not very happy with either solution, especially as I do not see the actual benefit of it. |
That's exactly it. The guys who wrote it wrote it so that they could show students errors (which are important in learning) and have their notebooks pass CI. They didn't want to use try except blocks as their students didn't know what they were and it doesn't show you the error you'd get if you used it without a try except block. I'm also not that fussed, I made this PR more as an illustration (to myself) of how to do this install from path in setup.py rather than requirements. Happy to tweak as @swillner suggested or close. |
Hmm. Then to keep the number of dependencies low, I strongly suggest we just do a try..except and only print the exception message (without backtrace). That way it also does not look like an error in the notebook at first glance... |
Perfect then I'll close this. |
Another reason to not have url links as dependencies, pypa/pip#4187 (tl;dr if you have url dependencies in setup.py, you can't upload your package to PyPI) |
Pull request
Add expect exception back in because it can go in setup.py
Please confirm that this pull request has done the following:
CHANGELOG.rst
added (N/A)Adding to CHANGELOG.rst
Please add a single line in the changelog notes similar to one of the following: