Use Plugins with basic FitsViewer
Hello, I am using Ginga (PyQt5) in order to develop my own app. I have started working on a proof of concept based on example1_qt.py. It works great and I am able to customize the GUI to my needs to visualize FITS. Is there a way to use Ginga plugin (ex: FBrowser) directly in the basic FitsViewer without using the full Reference Viewer? I would like to be able to cherry pick only few plugin for my app, Thanks, remy
Hi Remy, You are not the first person to request that! Unfortunately, right now there is no way to generally use the plugins without the reference viewer. They all use, to varying degrees, features of the reference viewer core. I have thought about trying to make a reference viewer "shim" (proxy?) that would be a kind of very thin replacement for the things that are expected by plugins. It might work for some of them.
stginga accomplished something similar by writing our own wrapper, see https://github.com/spacetelescope/stginga/blob/master/stginga/gingawrapper.py in case you find it useful.
Thanks for the replies, yes that would be a great feature for a future update! Meanwhile, I will play a little bit more with the wrapper approach from stginga to see if I can leverage it in my app.