ipython / ipython/ipykernel

Variable explorer displays functions with a leading underscore

未關閉
#1,072 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
734
分支
412
平均合併
1 天 5 小時
30 天內合併 PR
8

描述

The `inspectVariables` request and the variable explorer panel in the debugger seems to display functions with a leading underscore.

Here's a simple repro

```
def _abc():
return "Hello"

def abc():
return "Hello"
```

In the above code snippet, `_abc` will appear in the "Variables" panel whereas `abc` will not, as demonstrated below

![SCR-20230105-nlp](https://user-images.githubusercontent.com/43826141/210908421-0fc99ca9-6908-4313-9db7-af930fc14256.png)

貢獻指南

開啟貢獻指南

研究方向

Start by tracing the `inspectVariables` request and the debugger's variable explorer panel, using the provided Python reproduction to compare how `_abc` and `abc` are displayed. Done means the variable panel handles both functions consistently with the reported expected behavior, with a regression test covering the reproduction.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
jupyter, python
領域
devtools
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。