Skip to content

Conversation

@vagechirkov
Copy link
Contributor

@vagechirkov vagechirkov commented Mar 19, 2021

Reference issue #6846.

Reuse report.py code in order to produce html reports within the Info class.

Here is the output of in the IPython notebook:

image

Copy link
Member

@agramfort agramfort left a comment

Choose a reason for hiding this comment

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

so far so good !

Copy link
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

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

Can you modify tutorials/intro/plot_30_info.py to have a line like:

info

at the end of a code block? Then CircleCI will render it and we'll get to see the _repr_html_ in the built doc of this PR

@vagechirkov
Copy link
Contributor Author

vagechirkov commented Mar 19, 2021

Here is the output in the IPython notebook:

image
image

Copy link
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.

just two tiny bits of Python2 cruft. This looks great!

@drammock
Copy link
Member

vagechirkov and others added 2 commits March 19, 2021 18:37
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: Daniel McCloy <dan@mccloy.info>
@drammock
Copy link
Member

@vagechirkov can you mark this as "ready for review"? Or are you still considering it as a draft?

@vagechirkov vagechirkov marked this pull request as ready for review March 19, 2021 17:57
@vagechirkov vagechirkov changed the title WIP ENH: add _repr_html method to the class Info ENH: add _repr_html_ method to the class Info Mar 19, 2021
@vagechirkov vagechirkov changed the title ENH: add _repr_html_ method to the class Info ENH: add _repr_html_ method in the classes Info and BaseRaw Mar 19, 2021
@larsoner larsoner merged commit bc78db5 into mne-tools:main Mar 19, 2021
@larsoner
Copy link
Member

Awesome, thanks @vagechirkov !

@agramfort
Copy link
Member

thx heaps @vagechirkov !

a few suggestions to go further. You see that for raw in the report you only show the info from raw. I think
should show show more. Typically the duration of the recording. Also maybe the files it corresponds to (raw._filenames attribute).

other thoughts anyone?

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.

4 participants