-
Notifications
You must be signed in to change notification settings - Fork 234
feat(v2): rich display for doc and da #1043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
6e9817c
feat: add rich display for doc and da
2941269
fix: wip plot
5949e7c
fix: wip plot
05fa0fa
fix: wip plot
718fe52
feat: add math package and minmax normalize
3669de1
fix: summary for document
c56e975
chore: update poetry lock after rebase
b0ba3f3
fix: move all from plotmixin to base document
bd8cf3b
feat: add docs schema summary
25be9cc
feat: add document array summary
b7a915b
fix: display doc within doc
c6ee8ec
fix: in notebook print docs summary
d45988a
fix: move summary from da to abstract da
40c8eea
fix: get schema for doc
3bdb9d0
fix: wip doc summary
ea12600
fix: wip clean up
9321c0b
test: add test for da pretty print
189c33c
docs: update note
93046af
docs: add some documentation
fc0deec
fix: apply samis suggestion
c8f3849
fix: mypy checks
15b94fc
fix: move to plot mixin
58229aa
fix: remove redundant line
e55ba3b
fix: remove comments
147742d
feat: add schema highlighter
59bd3a6
fix: add plotmixin to mixin init
fd26a43
fix: adjust da summary
675b5c5
fix: move minmaxnormalize to comp backend
a375d19
fix: remove redundant lines
c3b44bd
fix: add squeeze and detach to comp backend
0d5653c
fix: apply suggestion from code review
6d479ab
refactor: rename iterable attrs
a1c4678
fix: clean up
3aac1c9
fix: import
eb75060
fix: iterate over fields instead of annotations
3cc1b55
fix: remove math package since moved to comp backends
ab585eb
refactor: use single quotes
b838ec9
fix: apply suggestions from code review
c56aa6e
fix: extract summary to doc summary class
b2b5bdd
fix: add pretty print for base document
7aa7e58
fix: use rich capture instead of string io
2ae8d6a
fix: add colors for optional and union and use only single quotes
0b881b1
fix: extract display classes to display package
6ba4eff
fix: make da not optional in da summary
a70142a
fix: set _console instead of initializing new one everytime in __str__
2a6bd5c
fix: put console at module level
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: use rich capture instead of string io
Signed-off-by: anna-charlotte <[email protected]>
- Loading branch information
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to create a console each time or can we define it once ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, if I set it to
self.consoleoutside ofdef __str__()I am getting this error:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah wait, my bad, this works, too. I put it as BaseDocuments attribute for now:
We could even put it outside of the class and use the same console object for all Documents, instead of one for each:
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes I like the later better only one console object at the module level