Every morning I produce a series of charts on python. To do so, I:
- Open Spyder
- Run my "packages" script (packages.py) which instructs python to import all the modules necessary (for example, datetime)
- Run my chart script (Good Morning.py) which creates the charts and prints them as in PDF in a folder. A further complication for this step is that I cannot hit "run file" in Spyder as I can do for step 2. For some reason Python does not recognize that I have imported my modules already and I get a message "NameError: name 'date' is not defined" (maybe because the .py files are in different folders). So I have to highlight the lines of code in this "Good Morning.py" file and then run the selection or current line (Fn+F9 on Mac) which does work.
Is there a way for me to automate this task and have it run daily without even having to do step 1?