I am working on a HPC-Linux-cluster and need to conduct a lot of Post Processing of data with python functions and scripts. My current workflow looks like the following:
- cd to folder where my data is. The intended python function/script is also saved in this folder
- Do:
python myfunction arg1 arg2 - Review results
Since this doesn't allow me to store my python functions in one location it can get quite annoying sometimes when debugging.
So I was wondering if it is possible to store my functions at one location and autocomplete them after the python command without declaring their entire paths?
Ideally it would look like this:
python myfunction arg1 arg2
and not
python path-to-function/myfunction arg1 arg2
I have already managed to do so in the python interactive via the $PYTHONPATH and then import my functions, but frankly I don't like this solution since it is just a couple of more lines to type.
I also set a global variable to proceed as following: python $MYFUNCTIONS_PATH/myfunction arg1 arg2 but autocomplete won't work and it is also extra typing.
This is my first post here, I hope the question is nicely understood.