Closed carbon-starlight closed 7 months ago
Never mind, it looks like my VSCode terminal wasn't displaying the whole lines for some reason. There are line numbers when printing single strings at the end of the lines, the terminal just crops them sometimes.
I hope we solved your problem.
If you like using Rich, you might also enjoy Textual
I was recommended rich's
console.log()
as a way to add to aprint
statement output the number of the line of theprint
statement itself. Withconsole.log(some_array)
the number of it's line is indeed being printed — after a column next to filename. But when Iconsole.log()
a single string there is no line number being printed. Is there a way to print one?