Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Matthew Baumgartner
Ah, thank you very much this is exactly what I need! I know it's not super safe, but for rapid development, this will be perfect! Thanks! On 07/18/2014 02:25 PM, Thomas Holder wrote: > Hi Matt, > > python has some limited support to reload a module. I actually used that a > lot when developing t

Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Thomas Holder
Hi Matt, python has some limited support to reload a module. I actually used that a lot when developing the plugin manager. This is just a hint, use with caution: set_key F1, import pmg_tk;reload(pmg_tk.startup.foo) https://docs.python.org/2/library/functions.html#reload This will not re-invok

Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Matthew Baumgartner
Hi, It is possible for users to run without a GUI, but it has a GUI and when I am making changes to it I would like faster turn around times between edits to my code. Matt On 07/18/2014 02:08 PM, Sampson, Jared wrote: Hi Matt - Does your plugin require a GUI, or can you rely on scripted comm

Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Sampson, Jared
Hi Matt - Does your plugin require a GUI, or can you rely on scripted commands and output files for your tests? For any tests that don’t need the GUI, you might consider running them with something like `pymol -ckq my_test.pml`. http://www.pymolwiki.org/index.php/Command_Line_Options Cheers,

Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Sampson, Jared
Hi Matt - Does your plugin require a GUI, or can you rely on scripted commands and output files for your tests? For any tests that don’t need the GUI, you might consider running them with something like `pymol -ckq my_test.pml`. http://www.pymolwiki.org/index.php/Command_Line_Options Cheers,

Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Matthew Baumgartner
Hi, Thank you for you suggestions. However, I was looking for a way to do it without restarting pymol if possible. Currently, restarting is the fastest solution, but it still takes up about 10-15 seconds to close pymol, restart it, and have it load the structures I need to test my script. One

Re: [PyMOL] Faster installation of plugins during development

2014-07-18 Thread Andreas Warnecke
Hej Matthew, 1. The advantage of using the plugin manager is that it will automatically import all the plugin in the 'plugins' folder of the 'pymol-script-repo'. This should re-load you plugin if it is located in a folder managed by the plugin manager. The loading of plugins located therein occurs

[PyMOL] Faster installation of plugins during development

2014-07-18 Thread Matthew Baumgartner
Hi, So i am working on a pymol plugin (shameless plug ) and I have been annoyed how difficult it is to reinstall my plugin so I can see the effect of the changes I have made. Currently, the process is: Plugin Menu > Plugin Manager > Install New

[PyMOL] Fwd: Structure not opening properly from the command line.

2014-07-18 Thread Dibyajyoti Das
Dear All, I want to open a grid file in pymol directly from the command line (I have attached the file alongwith). However when I type pymol , the pymol opens up but nothing is shown on the pane. I have to click on the toggles and set show> everything for the figure to be shown. Is there an option