mne-tools / mne-tools/mne-python
Allow blocking execution of plot_alignment() and stc.plot()
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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