is there any util that helps printing aligned all ...
# datascience
e
is there any util that helps printing aligned all the fields of the classes inside a collection? Sort of like
DataFrame
m
I am not sure if If got what you want. But with https://github.com/JakeWharton/picnic you can achieve tabular output and for course mit with https://github.com/Kotlin/kotlinx.html you can write html. I didn’t tried yet to use kotlinx.html with Jupyter …
e
picnic might be really nice, thanks for the tip
👍 1
picnic is almost perfect indeed. But it misses colors..
m
What is your target output?
e
console
m
colors should be possible with console, didi you tried Ansi escape codes ? https://en.wikipedia.org/wiki/ANSI_escape_code#Colors
e
I'm trying right now
m
🙂
e
first in Idea Repl
looks working (kotlin interactive shell), I'll try now in picnic
m
even multiplatform
e
the funny thing, I already used it ages ago, but I forgot xD
m
Markdown renderer is also impressive
e
there is also animation, I cant wait to try this in a terminal!