I know that many of the working directory prompts that work in IPython also work in Spyder as long as they're prefaced by %.
For example, pwd
and ls
work in IPython, but to run the same commands in Spyder they need to be prefaced with a % such as: %pwd
and %ls
.
To change the directory in IPython, I can run the cd command like: cd C:\Users\
... HOWEVER, this doesn't seem to work in Spyder, even when prefaced with a %. Any suggestions?
I know that os.chdir ('C:\\Users\\')
works, just trying to understand why %cd C:\Users\
doesn't...