Improve `es_info` method output readability
See original GitHub issueIn my case, es_info
method output readability is not optimal:
- tabulation breaks if screen width is too small (screenshot below), a possibility might be return an object declaring a
_repr_html_
method to have nice display in notebook environment - since
es_info
is probably only useful in interactive environment, it might be relevant to directly print output instead of returning a string
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Tips to improve code readability - Level Up Coding
The process can be applied to every piece of code. Group the lines that handle the same logic or that result in a...
Read more >Improving code readability – turning comments into methods
I'm working with 21 developers to improve their code readability. Through a code read-through, they listen to another developer try and read ...
Read more >5 steps to improving readability
Readability is the key to engaging content that boosts your SEO rankings, increases engagement and improves conversion rate.
Read more >[vlc-devel] commit: Also dump item name, uri, duration and es info ...
[vlc-devel] commit: Also dump item name, uri, duration and es info. ... + Additional options can improve performance and output readability: + -V...
Read more >Entity Services Developer's Guide — Chapter 5 - Documentation
Shown here as JSON for readability, this is really a map:map in XQuery. ... If you pass an envelope document to the convert-instance-...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sethmlarson I prefer as well a solution that avoids cutoffs, even if it means a longer output. An additional improvement could be a html table in notebooks by implementing
_repr_html_
method: it would avoid cutoff by providing horizontal scroll + would keep a compact output.Would it makes sense in your opinion to “split”
es_info
in multiple methods? For instancees_mappings
,es_operations
etc ?@NickolayVasilishin Agreed! Having an object is definitely preferred.