Skip to content

Commit 92f5dd8

Browse files
authored
BUG: Fix bug with mne browser backend (mne-tools#12078)
1 parent 812b02e commit 92f5dd8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

doc/changes/devel.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Bugs
6767
- Fix :func:`~mne.viz.plot_volume_source_estimates` with :class:`~mne.VolSourceEstimate` which include a list of vertices (:gh:`12025` by `Mathieu Scheltienne`_)
6868
- Add support for non-ASCII characters in Annotations, Evoked comments, etc when saving to FIFF format (:gh:`12080` by `Daniel McCloy`_)
6969
- Correctly handle passing ``"eyegaze"`` or ``"pupil"`` to :meth:`mne.io.Raw.pick` (:gh:`12019` by `Scott Huberty`_)
70+
- Fix bug with :func:`~mne.viz.plot_raw` where changing ``MNE_BROWSER_BACKEND`` via :func:`~mne.set_config` would have no effect within a Python session (:gh:`12078` by `Santeri Ruuskanen`_)
7071

7172
API changes
7273
~~~~~~~~~~~

mne/utils/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,10 @@ def set_config(key, value, home_dir=None, set_env=True):
381381
config[key] = value
382382
if set_env:
383383
os.environ[key] = value
384+
if key == "MNE_BROWSER_BACKEND":
385+
from ..viz._figure import set_browser_backend
386+
387+
set_browser_backend(value)
384388

385389
# Write all values. This may fail if the default directory is not
386390
# writeable.

0 commit comments

Comments
 (0)