ENH: Extend _repr_html_ method for Raw#9172
Conversation
|
I would just show the basenames of the filenames and represent the
measurement time range in hour / min / seconds
… |
Here is an example: |
|
"Measurement date" should ideally include the time too :) |
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
…/mne-python into pr/vagechirkov/9172
mne/data/html_templates.py
Outdated
| <td>{{', '.join(filenames)}}</td> | ||
| </tr> | ||
| <tr> | ||
| <th>Measurement time range</th> |
There was a problem hiding this comment.
Do you think we could change this to simply "Measurement time"? Would be slightly more concise … @agramfort WDYT?
Co-authored-by: Richard Höchenberger <richard.hoechenberger@gmail.com>
|
Cool, looking good! |
|
regarding measurement time range I would rather show the duration eg (6min 13s or 8h 2min 28s). For example a sleep recording can last 10h hours and it would be spanned over different days. |
So you're proposing ? I like this. Also wondering if we should maybe include |
|
Yes and yes 👍
|
|
Thx @vagechirkov |
|
This is a real usability improvement, thanks a bunch!! |
Do you think it makes sense to create similar HTML-based representations for other MNE-Python objects? |
I was actually thinking about exactly this, yes. Most relevant for me personally would be Epochs and Evoked; but having such a nice representation for more objects eventually could make total sense!! |
Alright, I can do this. I would create a new issue for several objects to keep progress :) |
|
+1 for evoked and epochs
|






Reference issue #6846 and PR #9161
Add more information in the
_repr_html_output.