Repository navigation
Conversation
Carreau
force-pushed
the
master
branch
2 times, most recently
from
October 19, 2020 20:45
aa92b4c to
3c2c185
Compare
Author
|
I am having problem passing this test, and others similar.
The problem is this line: @Carreau what should I do? |
* Added pathlib in a few places where it makes sense to.
Using the %matplotlib magics would not always work without this fix: For `%matplotlib qt5` to work, `flush_figures` should not be in `get_ipython().events.callbacks['post_execute']`. Yet without this fix: ```python Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. IPython 7.18.1 -- An enhanced Interactive Python. In [1]: %matplotlib inline In [2]: %matplotlib inline In [3]: %matplotlib inline In [4]: %matplotlib inline In [5]: get_ipython().events.callbacks['post_execute'] Out[5]: [<bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x00000199BFE73888>>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function matplotlib.pyplot.install_repl_displayhook.<locals>.post_execute()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>] In [6]: %matplotlib qt5 In [7]: get_ipython().events.callbacks['post_execute'] Out[7]: [<bound method AutoreloadMagics.post_execute_hook of <autoreload.AutoreloadMagics object at 0x00000199BFE73888>>, <function matplotlib.pyplot.install_repl_displayhook.<locals>.post_execute()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>, <function ipykernel.pylab.backend_inline.flush_figures()>] In [8]: ```
- Remove easily replaceable distutils imports with setuptools - Sort the imports alphabetically - Remove trailing whitespace
Travis is getting too slow to start, so migrating away some small steps to regain some CI time.
Signed-off-by: Hussaina Begum Nandyala <[email protected]>
Travis seem to now have a lower limit on open-source builds; so reduce dependency on Travis to get faster turnaround. Will also limit the number of failures to 10, so that if there are many test failing we don't spend too many cycles.
- fix utils.path.compress_user to accept path-like objects - create a PathObject traitlet for ipython_dir - fix test_paths.py: It's still pending to fix some tests that fail because of what is IMO a design error. I just commented them out for now. See: issue #12651
Author
|
@Carreau this pull request is ready for review |
Carreau
reviewed
Oct 27, 2020
Carreau
reviewed
Oct 27, 2020
| def from_string(self, s): | ||
| if self.allow_none and s == "None": | ||
| return None | ||
| return Path(s) |
Member
There was a problem hiding this comment.
All of this could also be suggested as a path to traitlets itself.
Member
|
There seem to be a number of commented test with TODO and the rebasing went wrong, I'll try to fix some of this. |
Author
I talked about those tests at #12651 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replacing
os.pathbypathlibinIPython/path.py. See: #12515