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.

Line numbers in `st.code`

See original GitHub issue

Problem

Code showing with st.code are hard to tell which line is wrong or right if the code has so many lines.

Solution

MVP: add a parameter show_line_numbers (bool) to st.code

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
randyzwitchcommented, Apr 6, 2021

Closing this, as it looks like its resolved via a Streamlit component (yay for the community!)

1reaction
ydcjeffcommented, Apr 2, 2021

Ahh I missed that. Thank you @maarten-betman

Read more comments on GitHub >

github_iconTop Results From Across the Web

Display line numbers for code - Visual Studio (Windows)
You can show or hide line numbers in your code. Here's how. On the menu bar, choose Tools > Options. Expand the Text...
Read more >
How to add line numbers to a program listing/code? [duplicate]
I don't know how to get the numbering on the left side when I compile LaTeX. Using \verbatim only gives me the code....
Read more >
Show line numbers in Code Composer V5 - TI E2E
Right-clicking the column of line numbers appears to give an option to deselect 'Show Line Numbers', but clicking it does nothing.
Read more >
California Rules of Court: Title Two Rules - California Courts
Line numbers must be consecutively numbered, beginning with the number 1 on each page. There must be at least three line numbers for...
Read more >
html: How to add line numbers to a source code block
Without using float , there is a simple solution so text isn't wrapped under the line numbers. The trick is setting a margin...
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