Python scripts are great for many things, but sometimes I just need to open a command line and do basic calculations. It would be nice not to have to run Anaconda, then start Python, then import the math package, then define basic constants (e.g. Na = 6.022e23
) every time I need to calculate something simple.
Therefore, I have tried writing a batch file to run Anaconda, start Python, import the math package, and define constants. These lines in my BAT code will start Anaconda and Python:
call C:\Users\Chris\Miniconda3\Scripts\activate.bat C:\Users\Chris\Miniconda3
python
Unfortunately, any lines I add after this in the BAT code are ignored. I would be grateful for any recommendations to make this work.