MCPcopy Index your code
hub / github.com/ipython/ipython / _format_lineno

Function _format_lineno

IPython/core/history.py:1270–1274  ·  view source on GitHub ↗

Helper function to format line numbers properly.

(session: int, line: int)

Source from the content-addressed store, hash-verified

1268
1269
1270def _format_lineno(session: int, line: int) -> str:
1271 """Helper function to format line numbers properly."""
1272 if session == 0:
1273 return str(line)
1274 return "%s#%s" % (session, line)

Callers 1

historyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…