Skip to content

Add hover to add_annotation#13931

Open
larsoner wants to merge 4 commits into
mne-tools:mainfrom
larsoner:annot
Open

Add hover to add_annotation#13931
larsoner wants to merge 4 commits into
mne-tools:mainfrom
larsoner:annot

Conversation

@larsoner
Copy link
Copy Markdown
Member

Implemented something I've wanted for a while, hover support for printing label names:

import mne
brain = mne.viz.Brain('fsaverage', surf="inflated")
brain.add_annotation('HCPMMP1_combined', hover=True)
Screencast.From.2026-05-28.14-22-14.mp4

Along the way:

  • Removed our custom _read_annot code, we should use nibabel for this
  • Removed support for passing (labels, ctab) as annot in add_annotation. I strongly suspect it wasn't really used in practice, and wasn't tested, so I think it's safe enough.

@larsoner larsoner changed the title ENH: Add hover to add_annotation Add hover to add_annotation May 28, 2026
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

Successfully merging this pull request may close these issues.

1 participant