mne-tools / mne-tools/mne-python

Allow blocking execution of plot_alignment() and stc.plot()

Open
#10,221 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ENH VIZ
Dominant language
Python
Stars
3.5k
Forks
1.6k
Avg merge
1d 6h
Merged PRs (30d)
100

Description

The alignment and the Brain plots are both used in interactive exploration and in non-interactive scripts.

A common annoying issue that I and other users regularly run into is that we write a short script that displays the sensor alignment or a SourceEstimate, run it (e.g. via the Run button in VS Code), the window pops up – and immediately disappears. So one then needs to run the script again -- this time, with python -i or after inserting some blocking call like input().

It would be great if there was an easier way to ensure a blocking behavior.

cc @GuillaumeFavelier

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the implementations and existing call paths for plot_alignment() and stc.plot(). Review how each currently handles interactive and non-interactive use, then check any related plotting tests or examples. Done means both plots offer an easier blocking behavior without disrupting interactive exploration or script-based use.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.