Issue
When on Linux (bash) to list the contents of a directory in Jupyter I can simply do:
path = './foo/bar'
%ls {path}
I could not find a way achieve the same when running Jupyter on Windows (powershell). Is there one?
Solution
I was too hasty in asking this! One should just replace the backslashes with fwdshlashes and add an additional one at the beginning like so:
path = ".\\foo\bar\"
%ls {path}
Answered By - ezatterin
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.