ginga icon indicating copy to clipboard operation
ginga copied to clipboard

Use Plugins with basic FitsViewer

Open remydw opened this issue 7 years ago • 3 comments

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

remydw avatar Feb 10 '19 19:02 remydw

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.

ejeschke avatar Feb 11 '19 19:02 ejeschke

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.

pllim avatar Feb 11 '19 20:02 pllim

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.

remydw avatar Feb 12 '19 02:02 remydw