Nov-01-2016, 03:51 PM
Hi all,
I am fairly new to Python, though I have computing experience in other languages. I have a very basic question here: I want to run operations (mathematical and plotting etc.) in the python environment but I do not want to run my code over and over again as it takes a few minutes to run.
Now I am compiling my codes in the terminal as 'python programname.py', but once the program is complied if I want to add an extra line or make an extra plot I have to run my code again. I am sure this should not be the case, there must be someway where you can compile the code in the python environment and then do operations using the lists or variables defined in the code (without running the whole program again). It would be great, if you can help me out with this. I use mac unix. Thanks in advance.
I am fairly new to Python, though I have computing experience in other languages. I have a very basic question here: I want to run operations (mathematical and plotting etc.) in the python environment but I do not want to run my code over and over again as it takes a few minutes to run.
Now I am compiling my codes in the terminal as 'python programname.py', but once the program is complied if I want to add an extra line or make an extra plot I have to run my code again. I am sure this should not be the case, there must be someway where you can compile the code in the python environment and then do operations using the lists or variables defined in the code (without running the whole program again). It would be great, if you can help me out with this. I use mac unix. Thanks in advance.