I'm using Spyder 3 bundled with Anaconda Python on Ubuntu. Usually with other Python IDEs (like IDLE,...) when i want to work inside a specific folder, I just go to that folder then open a terminal, type "idle" and the IDE pops up, then I can work inside that folder. But with Spyder when i open a terminal, type "spyder" , the Spyder IDE still works at the default directory! How can I change this? Please help me, thank you very much
You can change working directory after opening Spyder by typing inside IPython console cd path/to/working/dir
.
EDIT:
I have found how you can set directory from the command line (from spyder3 --help
). It is -w
flag:
spyder3 -w path/to/dir
or
cd path/to/dir
spyder3 -w `pwd`