我可以在 vscode 的常規 python 檔案中使用正常的 F2 重命名變數功能。但不是在 jupyter notebook 中編輯 python 時。
當我在 vscode 中的 jupyter 筆記本中的變數上按 F2 時,我會看到熟悉的更改變數視窗,但是當我按 Enter 時,變數沒有更改,并且收到以下錯誤訊息:
沒有結果。沒有結果。
有沒有辦法讓 F2 更改變數功能在 jupyter 筆記本中作業?
這是我的系統資訊:
jupyter 模塊版本
(adventofcode) C:\git\leetcode>pip show jupyter
Name: jupyter
Version: 1.0.0
Summary: Jupyter metapackage. Install all the Jupyter components in one go.
Home-page: http://jupyter.org
Author: Jupyter Development Team
Author-email: [email protected]
License: BSD
Location: c:\users\johan\anaconda3\envs\adventofcode\lib\site-packages
Requires: ipykernel, qtconsole, nbconvert, jupyter-console, notebook, ipywidgets
Required-by:
蟒蛇版本:
(adventofcode) C:\git\leetcode>python --version
Python 3.10.0
vscode版本:
1.63.2 (user setup)
vscode Jupyter 擴展版本(來自擴展視窗中的更改日志):
2021.11.100 (November Release on 8 December 2021)
uj5u.com熱心網友回復:
請注意,您在 GitHub 中提交了錯誤報告并看到此問題:重命名變數不起作用,程式員回答:
筆記本目前不支持某些語言功能,但我們現在正在制定計劃,希望盡快將更多這些功能上線。
所以請等待這個功能。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/414211.html
標籤:
上一篇:用同一行中的值替換值的正則運算式
