# Make python's file, line output clickable in terminal \(\#26903\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d253d46fdf894b520db5d19fc3e4ba7c5ba439f4)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d253d46fdf894b520db5d19fc3e4ba7c5ba439f4

Requested commit: d253d46fdf894b520db5d19fc3e4ba7c5ba439f4

Commit: d253d46fdf894b520db5d19fc3e4ba7c5ba439f4

Tree: 4f72a215182a79a7b74ec82f6d9920ec5d5f931d

Author: Thorben Kröger

Committer: GitHub

## Message

```
Make python's file, line output clickable in terminal (#26903)

Closes #16004.


![image](https://github.com/user-attachments/assets/73cfe9da-5575-4616-9ed0-99fcb3ab61f5)

Python formats file and line number references in the form `File
"file.py", line 8"`
I'm not a CPython expert, but from a quick look, they appear to come
from:
-
https://github.com/python/cpython/blob/80e00ecc399db8aeaa9f3a1c87a2cfb34517d7be/Python/traceback.c#L613
-
https://github.com/python/cpython/blob/80e00ecc399db8aeaa9f3a1c87a2cfb34517d7be/Python/traceback.c#L927
I am not aware of the possiblity to also encode the column information.

Release Notes:

- File, line references from Python, like 'File "file.py", line 8' are
now clickable in the terminal

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

- [07727f939e3e44e56a01481d7aad238703bd6715](https://git.cafe/gitcafe/zed/commit/07727f939e3e44e56a01481d7aad238703bd6715?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d253d46fdf894b520db5d19fc3e4ba7c5ba439f4?format=markdown)
