Demonstrate use of LiberTEM-panel-ui <https://github.com/LiberTEM/LiberTEM-panel-ui>
_
to build a simple image viewer application.
Integrates into Jupyter using
jupyter-server-proxy <https://github.com/jupyterhub/jupyter-server-proxy>
_.
Launch via Binder with default image:
<https://mybinder.org/v2/gh/matbryan52/image-viewer/HEAD?urlpath=/image-viewer?default=true>
_
.. image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/matbryan52/image-viewer/HEAD?urlpath=/image-viewer?default=true
Directly load an image from the :code:data
directory:
<https://mybinder.org/v2/gh/matbryan52/image-viewer/HEAD?urlpath=/image-viewer?path=./data/logo.png>
_
.. image:: https://mybinder.org/badge_logo.svg :target: https://mybinder.org/v2/gh/matbryan52/image-viewer/HEAD?urlpath=/image-viewer?path=./data/logo.png
.. code-block:: console
$ panel serve src/image_viewer/app.py --port 9123 --dev
?url=
, :code:?path=
)rosettasciio
, delegates to :code:skimage.io.imread
for normal images.rosettasciio
generates compatible axis annotations.Panel
layout so can add text / metadata / more interactivity easilyLiberTEM-panel-ui
. This is
a minimal example which only displays a 2D greyscale image.