I am trying to pass a .py file to ipython notebook environment. I have never had to deal directly with argparse before. How do I rewrite the main()
.py
main()
You can try args = parser.parse_args(args=[]).
args = parser.parse_args(args=[])