I am parsing the command line arguments in my Python code:
parser = argparse.ArgumentParser()
parser.add_argument('-e', '--epochs', type=int, default=50)
parser.add_argument('-ts', '--train-size', type=int, default=None)
parser.add_argument('-ti', '--title', default=None)
args = parser.parse_args()
So everytime I run the Python file I am able to specify title and other things I need. But since PyCharm needs run config to run, I have to manually edit run configs and save everytime I want to run.
Is there way hack to make this thing pop-up just before I run the experiment?

One simple way is to use the terminal from inside and just run the script with args like I do in command prompt, but I lose other configuration like the env vars, Python interpreter, conda environment, etc., when I'm doing this.
This is possible now because run configuration parameters can include Jetbrains Macros, one of which triggers an input prompt. There are some limitations:
$Prompt$s in, since that will be the order they pop up when you run your Run Configuration.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With