You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discussed this in separate conversations w @tlambert03, @sofroniewn and in the plugin working group meeting.
One of the nice things about migrating these is that it makes it simple for people to integrate functions like these into napari without adding dependencies to their package (no npe2, magicgui, napari etc...just the manifest file)
The proposal is to migrate napari_experimental_provide_function hooks to be npe2 widget contributions. It sounds like something like this might work:
name: myplugincontributions:
commands:
- id: myplugin.funcpython_name: myplugin:my_typed_functiontitle: Open dock widget for myplugin functionwidgets:
- command: myplugin.funcname: Functionalitytype: magicgui #<-- new field
Implementation should cover:
schema support
npe2 conversion tool support
npe2 doc update
npe2 cookiecutter update
The text was updated successfully, but these errors were encountered:
I like this, since it removes the "function" part from the name (which was always my biggest issue with that, since it wasn't really being used to provide a function as much as a widget) and emphasizes that this is just a subtle variant of provide_dock_widget,
I like this, since it removes the "function" part from the name (which was always my biggest issue with that, since it wasn't really being used to provide a function as much as a widget) and emphasizes that this is just a subtle variant of provide_dock_widget,
very nice! what i like about all of this (e.g. npe2) too is that if we come along and make something new like "workflow-blocks" then we can just reuse the same commands but put them with the new thing.
Description
I discussed this in separate conversations w @tlambert03, @sofroniewn and in the plugin working group meeting.
One of the nice things about migrating these is that it makes it simple for people to integrate functions like these into napari without adding dependencies to their package (no npe2, magicgui, napari etc...just the manifest file)
The proposal is to migrate napari_experimental_provide_function hooks to be npe2 widget contributions. It sounds like something like this might work:
Implementation should cover:
The text was updated successfully, but these errors were encountered: