I am rewritting a custom QGIS application as a plugin for QGIS. I am testing it by writing some new code, then deactivate/activate the plugin in the plugin manager, which seems to me a bit cumbersome.

Is there a way to reload the plugin faster?

  • 4
    Plugin Reloader plugin? – Nathan W Sep 14 '16 at 6:11
  • Its probably also best practice to decouple as much code from QGIS as possible, and write test wrappers and create any mock objects you need so you can run your plugin code without a full QGIS running... But maybe you do this already? – Spacedman Sep 14 '16 at 6:47
  • Agree with your comment as far as bussiness logic goes. Im just checking to see how to integrate/modify certain GUI parts into QGis, so i had the need to constantly reload it to see the relevant changes. – U2ros Sep 14 '16 at 8:45

@Nathan W answer in comments is correct. You need to use the Plugin reloader. This useful plugin does exactly what your looking for.

Just go in the Plugins menu/Manage and install plugins/Not installed/Plugin Reloader.

Plugin reloader

It'll add a new menu and you'll be able to reload a plugin with F5 key

Plugin reloader menu

As a bonus in your workflow, you might be interested to create your own repository on a common server (to share your plugin internally) :

Plugin rep

With an XML file looking like this

<?xml version="1.0" encoding="iso-8859-1"?>
  <pyqgis_plugin version="1.0" name="My Plugin">
    <description>this my personnal plugin</description>
    <author_name>My and myself</author_name>
  • 1
    For a second i thought Nathan made a joke there, because i couldn't find the Reloader plugin. In 2.16 it is listed under "experimental" and i had that ticked out in the listing. Thanks for the help! – U2ros Sep 14 '16 at 8:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.