Hi all,

I hope you are doing well.

I have a python script that allows the user to visualize specific residue pairs.

Here is an overview of how the script functions:

 

To run the script currently, I have to do the following: i)Open chimerax ii)Show the shell iii) Call the script from the shell

 

Now, is it possible to include some codes in the script that would allow me to just open chimerax, click on File -> Open -> this script, and then the shell would show up and the execution would continue there?

 

Right now, if I ran the script using File -> Open -> this script, I would get this error:

Traceback (most recent call last):
File "C:/Users/Shubham/Desktop/this_script.py", line 8, in
session_path = input('Enter file (.cxs) to be visualized with path: \n')
RuntimeError: input(): lost sys.stdin

 

Regards,

Shubham

 

Sent from Mail for Windows