Parameter transmission method

For example
Execute py file to pass parameters

python -u /home/main.py -f=2025052201 -t=20250514

You can use args.f and args.t to obtain values in main. py

How to pass parameters to the main. py file when referencing it in ipynb and clicking on run time?

I’m not following the clicking on run time part?
Normally, if you are calling a Python script from inside a running .ipynb file, or initiate execution of from the command line using jupytext or jupyter convert, you would call it in the notebook .ipynb file with %run main.py -f=2025052201 -t=20250514 and the arguments will get passed in. Is that not happening? Did you try a simpler set of arguments and script?