Connections Pane: Inspecting connections inside called functions and globally scoped code #8946
-
Hey Positron Devs, I really enjoy the idea of the connection panel to explore my database tables in my IDE! One thing I've noticed is that I cannot inspect connections or variables inside functions:
However, I can inspect the connection when it is defined globally:
Is the recommended workflow Positron putting globally scoped code through IPython sessions? I see this workflow from my R colleagues. My current build: Positron Version: 2025.08.0 build 130 Edit: Not sure if this is a repeat of #8546 and is something that would be covered in #8939. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Thank you for this question! Can you say more about what you mean by this:
Do you mean debugging a connections object using the Python debugger? Or something more like the UI support provided by the Connections pane? Or maybe something else 😅 |
Beta Was this translation helpful? Give feedback.
I think you just need to explicitly return it, so the object has the right connection class and the UI knows what to do with it:
IIUC a Python function without an explicit return will return
None
.