Skip to content

Update napari plugin activation in launch_napari#3181

Merged
MMathisLab merged 1 commit intoDeepLabCut:mainfrom
C-Achard:cy/napari-dlc-overhaul
Jan 17, 2026
Merged

Update napari plugin activation in launch_napari#3181
MMathisLab merged 1 commit intoDeepLabCut:mainfrom
C-Achard:cy/napari-dlc-overhaul

Conversation

@C-Achard
Copy link
Copy Markdown
Collaborator

Replaces the menu action trigger for activating the 'napari-deeplabcut' plugin with a direct, safer call to add the 'Keypoint controls' dock widget.

This pull request updates how the napari-deeplabcut plugin is activated when launching Napari from the launch_napari function. Instead of searching for and triggering the plugin via the plugins menu actions, the code now directly adds the plugin's dock widget to the Napari window.


NOTE


Plugin activation improvement:

  • Changed the plugin activation method in launch_napari within deeplabcut/gui/widgets.py to directly add the napari-deeplabcut dock widget using add_plugin_dock_widget, making the process more straightforward and reliable.

Replaces the menu action trigger for activating the 'napari-deeplabcut' plugin with a direct call to add the 'Keypoint controls' dock widget. Safer and required to use new plugin code from DeepLabCut/napari-deeplabcut#153
@C-Achard C-Achard self-assigned this Jan 14, 2026
@C-Achard C-Achard requested a review from deruyter92 January 14, 2026 15:08
@C-Achard
Copy link
Copy Markdown
Collaborator Author

@deruyter92 Do we have a napari-dlc label ? For PRs/issues

@MMathisLab MMathisLab added Installation backwards compatibility issues concerning prior to current versions GUI issues relating to GUI labels Jan 14, 2026
Copy link
Copy Markdown
Collaborator

@deruyter92 deruyter92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea to replace this. Tested it and works well for me!

@C-Achard
Copy link
Copy Markdown
Collaborator Author

C-Achard commented Jan 15, 2026

@MMathisLab Thanks for the labeling !

@MMathisLab MMathisLab merged commit 9436cac into DeepLabCut:main Jan 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backwards compatibility issues concerning prior to current versions GUI issues relating to GUI Installation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants