Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

What are the best directory settings for Spyder? [poll]

Lorenzo_Pellegrino (820 points)
2 6 10
in Programming in Python by (820 points)
reshown by
Every time I have to work on homeworks or other exercises I struggle with the correct directories and I always have to change something manually, from the preferences to the console, so what are your favourite directory settings? I'm talking about those settings in Tools\Preferences\Current working directory\Startup, Console directory and Tools\Preferences\Run\Working directory settings. NOTE: I already possess a directory for all my programs and homeworks.
### no choices found for poll!
286 views

3 Answers

ruben.ciranni (4650 points)
8 14 31
by (4.7k points)
I suggest you creating a directory for the programming 1 course, where you put all the notes and all the HW directories. That way you keep everything tidy in your pc.
gabrimat (5630 points)
2 4 25
by (5.6k points)
Totally agree. Create a clean and organized environment.
Lorenzo_Pellegrino (820 points)
2 6 10
by (820 points)
I already have a directory for all my works plus a homework folder inside of it. I still have problems when it comes to inner directories: python always start in the wrong one
rokshana03 (16750 points)
1 4 35
by (16.8k points)
Uh well, I'm not sure how useful this may be but I have a whole directory for Programming where I store the homework files, but regardless of this,

In my settings at the "current working directory", in the Startup section I put "the current project director or user home directory" and in the Console directory I have "the current working directory".

On the "Run" section, in the "working directory settings", I have  "the directory of the file being executed".

This helps me out simply because when I run my file, you can see on your console "runfile(.......)" with the directory of the file you are executind and the wdir (working directory, I'm assuming) that has the whole directory where my homework resides so when I call a text file inside that, I can easily do it without putting the whooole directory of it
Luigi Pizza (6120 points)
14 20 65
by (6.1k points)
I like to keep the files separated: to have in a folder all the .py's (notes from class, exercises, also if i have to import something) and have a folder inside that directory named after the type of files it has inside. So if i want a txt file named whatever.txt, i'll just write 'txt\whatever.txt', or 'img\whatever.png'.

I found this really useful when handling different types of files.

Another really important thing is to put them in order. For example, I have all the notes I've taken since class 1 named in the form 'notes{number}-{prof}{date}'

So, for example, I have:

'notes50-Mancini17-12.py' or 'notes24-Spognardi03-11.py'

The number after notes increases with every new file, and it is there to put everything in chronological order.

As they are all together, I don't ever need to change directory