user inputs for python scripts

Hi Team, Is there a way to provide user input to python script files? I tried using sys.argv but I keep getting an out of list error message when I call the script from the ipython shell (accessed from within the chimeraX window) Best, Pranav -- Pranav Shah Postdoctoral Research Fellow. Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK

The runscript command: Command: runscript <https://www.cgl.ucsf.edu/chimerax/docs/user/commands/runscript.html> --Eric
On Jun 24, 2022, at 10:21 AM, Pranav Shah via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Team,
Is there a way to provide user input to python script files? I tried using sys.argv but I keep getting an out of list error message when I call the script from the ipython shell (accessed from within the chimeraX window)
Best, Pranav -- Pranav Shah Postdoctoral Research Fellow.
Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users

Cheers eric! Best, Pranav -- Pranav Shah Postdoctoral Research Fellow. Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK On Fri, Jun 24, 2022 at 6:25 PM Eric Pettersen <pett@cgl.ucsf.edu> wrote:
The runscript command: Command: runscript
--Eric
On Jun 24, 2022, at 10:21 AM, Pranav Shah via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi Team,
Is there a way to provide user input to python script files? I tried using sys.argv but I keep getting an out of list error message when I call the script from the ipython shell (accessed from within the chimeraX window)
Best, Pranav -- Pranav Shah Postdoctoral Research Fellow.
Division of Structural Biology, Wellcome Trust Centre for Human Genetics, University of Oxford, Roosevelt Drive, Oxford OX3 7BN, UK _______________________________________________ ChimeraX-users mailing list ChimeraX-users@cgl.ucsf.edu Manage subscription: https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
participants (3)
-
Eric Pettersen
-
Pranav Shah
-
Pranav Shah