Issue
How can I change drive letter while in IPython under windows? For example, !cd W: does not make W: the current path, it just changes the path if you would change to drive W. Changing to a dos shell with !cmd and then changing to W: does not have any effect to the IPython shell.
Solution
From the cd ?
command:
Note that !cd doesn't work for this purpose because the shell where !command runs is immediately discarded after executing 'command'.
So, just use the cd
, and make sure to quote path so the colon after the drive letter isn't misinterpreted.
cd 'W:'
Answered By - Shaun Lebron
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.