You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: path completion with pathlib objects #10427
So, I love how ipython can path-complete strings to dig through your folders.
But I increasingly work with pathlib.Path objects for their increased readability and useful object attributes to access sub-paths.
Would it be possible to have ipython to be able to path-complete on a pathlib.Path folder?
So, I would like to be able to do something like this:
Activity
takluyver commentedon Apr 11, 2017
I like the idea, but with our current tab completion machinery this would be pretty difficult, I think.
carlsmith commentedon Apr 11, 2017
I wrapped the
Pathconstructor in a line magic for doing a similar thing interactively.With that set up, you can then do stuff like this (with tab completion):
It's of pretty limited use, but it lets you create paths using tab completion when working interactively.
takluyver commentedon Apr 11, 2017
Neat :-)
michaelaye commentedon Apr 11, 2017
Thanks! Where can I find the line_magic decorator?
carlsmith commentedon Apr 11, 2017
Opps! Sorry.