Skip to content

Commit

Permalink
BUG: Fix bug with mne browser backend (#12078)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruuskas authored Oct 6, 2023
1 parent 812b02e commit 92f5dd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changes/devel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ Bugs
- Fix :func:`~mne.viz.plot_volume_source_estimates` with :class:`~mne.VolSourceEstimate` which include a list of vertices (:gh:`12025` by `Mathieu Scheltienne`_)
- Add support for non-ASCII characters in Annotations, Evoked comments, etc when saving to FIFF format (:gh:`12080` by `Daniel McCloy`_)
- Correctly handle passing ``"eyegaze"`` or ``"pupil"`` to :meth:`mne.io.Raw.pick` (:gh:`12019` by `Scott Huberty`_)
- 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`_)

API changes
~~~~~~~~~~~
Expand Down
4 changes: 4 additions & 0 deletions mne/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ def set_config(key, value, home_dir=None, set_env=True):
config[key] = value
if set_env:
os.environ[key] = value
if key == "MNE_BROWSER_BACKEND":
from ..viz._figure import set_browser_backend

set_browser_backend(value)

# Write all values. This may fail if the default directory is not
# writeable.
Expand Down

0 comments on commit 92f5dd8

Please sign in to comment.