[Python] How to pass command line arguments to ipython

Discussão em 'Python' iniciado por Stack, Março 1, 2025.

  1. Stack

    Stack Membro Participativo

    Is there any way that I pass arguments to my python script through command line while using ipython? Ideally I want to call my script as:

    ipython -i script.py --argument blah


    and I want to be able to have --argument and blah listed in my sys.argv.

    Continue reading...

Compartilhe esta Página