ENH: add _repr_html_ method in the classes Info and BaseRaw#9161
Merged
larsoner merged 14 commits intomne-tools:mainfrom Mar 19, 2021
Merged
ENH: add _repr_html_ method in the classes Info and BaseRaw#9161larsoner merged 14 commits intomne-tools:mainfrom
larsoner merged 14 commits intomne-tools:mainfrom
Conversation
larsoner
reviewed
Mar 19, 2021
Member
larsoner
left a comment
There was a problem hiding this comment.
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
Co-authored-by: Eric Larson <larson.eric.d@gmail.com>
Contributor
Author
drammock
approved these changes
Mar 19, 2021
Member
drammock
left a comment
There was a problem hiding this comment.
just two tiny bits of Python2 cruft. This looks great!
Member
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Co-authored-by: Daniel McCloy <dan@mccloy.info>
Member
|
@vagechirkov can you mark this as "ready for review"? Or are you still considering it as a draft? |
Member
|
Awesome, thanks @vagechirkov ! |
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 other thoughts anyone? |
This was referenced Mar 20, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Reference issue #6846.
Reuse
report.pycode in order to produce html reports within the Info class.Here is the output of in the IPython notebook: