question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Improve `es_info` method output readability

See original GitHub issue

In 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
Capture d’écran 2020-07-16 à 20 10 23

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
leonardbinetcommented, Jul 17, 2020

@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 instance es_mappings, es_operations etc ?

0reactions
sethmlarsoncommented, Aug 9, 2021

@NickolayVasilishin Agreed! Having an object is definitely preferred.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found