Hey, I’m trying to create a panel where to user is able to select an image and have it displayed above the respective data plots.
In general the desired panel has two sections:
- A settings section
- A plot section
My idea was to use an FileInput Widget in the Settings section and after all the other desired settings are selected the user can press a “Plot” button widget, which will create the panel with the image and the desired plots.
My problem is that the “value” attribute of the FileInput widget is a bytestring and I have not found an easy way to turn that bytestring into an image (or any way at all, rather new to the python world, so excuse me if this is a trivial question).
Desired functionality would be to just to do
and have an image ready.
Does anybody have an idea how to do this? Thanks in advance!