Skip to content

Add repr html evoked#11075

Merged
drammock merged 22 commits intomne-tools:mainfrom
AJQuinn:add-repr-html-evoked
Aug 24, 2022
Merged

Add repr html evoked#11075
drammock merged 22 commits intomne-tools:mainfrom
AJQuinn:add-repr-html-evoked

Conversation

@AJQuinn
Copy link
Copy Markdown
Contributor

@AJQuinn AJQuinn commented Aug 23, 2022

Reference issue

closes #9177
supersedes and thus closes #9220

What does this implement/fix?

This takes the _repr_html method from #9220 and updates it to use the neew jinja2 templates.

Copy link
Copy Markdown
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make a trivial change to tutorials/evoked/10_evoked_overview.py. Editing a tutorial will cause CircleCI to execute that tutorial so we can see what the _repr_html_ actually looks like, before merging.

- :meth:`mne.Epochs.plot_psd_topomap` now suppresses redundant colorbars when ``vlim='joint'`` (:gh:`11051` by `Daniel McCloy`_)
- Add ``starting_affine`` keyword argument to :func:`mne.transforms.compute_volume_registration` to initialize an alignment with an affine (:gh:`11020` by `Alex Rockhill`_)
- The ``trans`` parameter in :func:`mne.make_field_map` now accepts a :class:`~pathlib.Path` object, and uses standardised loading logic (:gh:`10784` by :newcontrib:`Andrew Quinn`)
- Add HTML representation for `~mne.Epochs` and `~mne.Evoked` in Jupyter Notebooks (:gh:`9220` by `Valerii Chirkov`_)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will need to be updated. add your name after Valerii

Copy link
Copy Markdown
Member

@drammock drammock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please change line 261 of the tutorial from print(left_right_aud) to simply left_right_aud (this will trigger the _repr_html_, I forgot that explicitly calling print will override it).

Note also that I edited the PR description to explicitly use the word closes so that the issue and the other PR will automatically close when this one gets merged.

@AJQuinn
Copy link
Copy Markdown
Contributor Author

AJQuinn commented Aug 23, 2022

Thanks @drammock - that makes sense. Hopefully fixed in the last commit.

Co-authored-by: Alexandre Gramfort <alexandre.gramfort@m4x.org>
@drammock drammock merged commit 1f19f5b into mne-tools:main Aug 24, 2022
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.

Jupyter Notebook representations of MNE objects

4 participants