Skip to content

Running Viv in ImJoy and Jupyter notebooks #208

@oeway

Description

@oeway

Introduced by @gzuidhof , I started to play with this viewer and it feels great! Thanks for the great work.

Now wondering if you will be interested in integrating some changes to support running the viewer as an ImJoy plugin and used in Jupyter notebooks:

I made a little demo in my forked repo: https://github.com/oeway/vitessce-image-viewer
Screenshot-imjoy-jupyter

And you can try it on Binder here: Binder

The changes to the code is very minimal, this is the diff.

As you can see, for demonstration purpose, I only implemented a loadSource function. This can be extended further, for example, we can also send numpy array directly to the viewer (see another binder demo here). We can also support sending a getItem function from Python to JS and used as a zarr.js store (as consulted with @gzuidhof), like that one can open an zarr array in python and show it in the viewer, either in ImJoy or a jupyter notebook. For more details, see imjoy-rpc and imjoy-core.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions