napari 0.4.5#
We’re happy to announce the release of napari 0.4.5! napari is a fast, interactive, multi-dimensional image viewer for Python. It’s designed for browsing, annotating, and analyzing large multi-dimensional images. It’s built on top of Qt (for the GUI), vispy (for performant GPU-based rendering), and the scientific Python stack (numpy, scipy).
For more information, examples, and documentation, please visit our website: napari/napari
Highlights#
This release is our first release using Jupyter Book to build our documentation (#2187) which can be seen at https://napari.org/docs/dev/, or https://napari.org/docs/0.4.5/ . We’ll be continuing to reorganize the napari.org website to create a more integrate feel with documentation and tutorials living together. You can read more about our website reorganization in (#764).
We’ve also added exprimental support for the ability to link attribute in layers which could be useful for synchronizing attribute values across layers, for example to set matching contrast limits for multiple channels (#2226).
New Features#
Add experimental link_layers (#2226)
Improvements#
Replace evented dataclasses with pydantic evented model on viewer (#2042)
Add pydantic evented model (#2127)
UI: Add keybindings to the Paint and Pick tooltips (#2184)
Add update in-place to evented model (#2197)
Allow reader_function to return empty layer list (#2206)
Handle closing the main window via the close button and handle_exit for this case. (#2215)
More main window cleanup (#2218)
Support equality checking for arrays (or other unusual types) in EventedModel. (#2232)
Make get_stylesheet public (#2241)
Bug Fixes#
Fix show/ hide plugin widgets (#2173)
Fix bug with modification of
AVAILABLE_COLORMAPS
when iterating over it (#2193)Prevent monitor information refering to one of first issues (#2214)
Fix close procedure (#2220)
Update
napari.run
, prevent double-blocking (#2225)
Documentation#
Convert docs to use Jupyter Book (#2187)
API Changes#
Removed github searching for plugin discovery, instead the
Framework :: napari
classifer should be used (#2228)Removed evented_dataclass, instead the
EventedModel
should be used (#2236)The deprecated
Viewer.interactive
parameter has been removed, instead you should useViewer.camera.interactive
(#2198)The deprecated
Viewer.palette
attribute has been removed. To access the palette you can get it usingnapari.utils.theme.register_theme
dictionary using theviewer.theme
as the key (#2198)The deprecated approach of annotating a magicgui function with a return type of
napari.layers.Layer
has been removed. To indicate that your function returns a layer data tuple, please use a return annotation ofnapari.types.LayerDataTuple
orList[napari.types.LayerDataTuple]
(#2198)
Deprecations#
The
asdict
method has been renameddict
and is now deprecated onAxes
,Camera
,Cursor
,Dims,
GridCanvas,
ScaleBar` (#2197)
Build Tools and Support#
Use napari-console package (#2118)
Fix typo in hookspecs docs (#2180)
DOC: autoreformat all the docstrings (#2186)
Refactor a qt dims test to not use the viewer (#2194)
Move
--show-viewer
option to testsupport, add test (#2208)Include a line on adding screenshots/animations to PRs (#2219)
Skip perfmon test on windows pyside2 CI (#2223)
Generate api file for top-level napari package (#2237)
Better plugin errors surfacing in CLI with
--plugin-info
(#2244)Add pluginmanager fixture (#2247)
Fix API Reference link in docs (#2248)
Add missing release notes (#2250)
Update napari_plugin_tester docstring (#2251)
Remove pluginmanager fixture in favor of devtools repo (#2252)
10 reviewers added to this release (alphabetical)#
Gonzalo Peña-Castellanos - @goanpeca
Grzegorz Bokota - @Czaki
Jonas Windhager - @jwindhager
Juan Nunez-Iglesias - @jni
Justine Larsen - @justinelarsen
Kevin Yamauchi - @kevinyamauchi
Lia Prins - @liaprins-czi
Matthias Bussonnier - @Carreau
Nicholas Sofroniew - @sofroniewn
Talley Lambert - @tlambert03