silx-kit / silx

silx toolkit
http://www.silx.org/doc/silx/latest/
MIT License
129 stars 73 forks source link

silx-view: Plugin for extra DataView #3762

Open vallsv opened 1 year ago

vallsv commented 1 year ago

Hi,

I would like to propose python plugin for silx viewer to allow to create extra dataviewers.

For instance depending on the data you are browsing we could provide a bit more adapted data views.

This views could be handled by different project, or different beamlines if they really cares.

This would not remove anything to the actual silx viewer. But will provide a bit more flexibility if we need.

Python already provide the machinery for that (entry points, used by pytest and Lima for example). And a DataView was already designed as a pluggable object.

t20100 commented 1 year ago

If I understand well, the idea would be to have external packages providing some silx-view entry-points that defines a DataView and control its priority. This way, it would be included in the viewer as an extra tab but without any side-effects on the other views/state of the viewer. That sounds nice to me.

I'm wondering if it can have some issues with stuff that is shared across viewes like the colormap dialog.