Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Look into napari #13

Closed
billbrod opened this issue Oct 28, 2019 · 2 comments
Closed

Look into napari #13

billbrod opened this issue Oct 28, 2019 · 2 comments

Comments

@billbrod
Copy link
Collaborator

Seems like a useful way to visualize nD arrays: https://ilovesymposia.com/2019/10/24/introducing-napari-a-fast-n-dimensional-image-viewer-in-python/. Also has explicit support for image pyramids: http://napari.org/tutorials/image.html#image-pyramids

Want to check whether we can subclass it / extend it like we did with pyrtools.imshow, in order to make sure:

  1. There's no interpolation or smoothing in the display of an array
  2. Arrays are displayed as either zoomed out by a power of two or zoomed in by an integer, no intermediate values (which would lead to interpolation)

It looks like it's built on top of VisPy rather than matplotlib, don't know anything about the differences between them.

@billbrod
Copy link
Collaborator Author

As I poke into this a bit more, don't think this would work like pyrtools.imshow: the whole point of napari is that it's interactive / a GUI, not for creating images to save. Still might be useful for exploration of data.

However, note that it doesn't currently support Jupyter Lab (docs say it supports Jupyter Notebook, but I haven't tried it; bottom of this page).

In order for it to work in Jupyter notebook, need to add %gui qt5 in a cell and then wait for a bit for it to initialize. This means you probably also need to install pyqt5, but I'm not sure (it wasn't installed as part of pip install napari)

@billbrod
Copy link
Collaborator Author

Don't think this is necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant