自动完成在vscode上不用在jupyter笔记本中
我在Vscode上使用Jupyter。我对其自动完成功能有两个问题。我安装了Jupyter Keymap,Jupyter笔记本渲染器,Intellicode和Pylance。
我在文件夹中有titanic_train.csv,我的前几行代码如下:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
train=pd.read_csv('./titanic_train.csv')
train.head()
它给出了此
但是,当我输入第一个初始colution of Pirine of Survens column名称为train ['sur'['sur' ]我希望它会给我一些有关其自动完成功能的建议,但没有任何内容,我必须每次正确地键入每个字母的全名,这当然很累并且易于误解。如何使其自动完成功能起作用?
我的第二个问题是关于标签键。当我使用它时,它不像人们期望的那样工作,这意味着再次自动完成。它将创建4到5个空间。如何在Vscode和Jupyter上使用TAB代替CTRL+空间?
I am using Jupyter on VsCode. I have two questions about its autocomplete feature. I have Jupyter Keymap, Jupyter Notebook Renderers, IntelliCode, and Pylance installed.
I have titanic_train.csv in the folder I m working on and my first few lines of codes are as follows:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
train=pd.read_csv('./titanic_train.csv')
train.head()
which gives this
but when I type first initial of Survived column name as train['Sur'] I expect it to give me some suggestion about its autocomplete feature but nothing comes up and I have to type the full name each letter correctly, every time, which is tiring and easy to mistype of course. How to make its autocomplete feature work?
My second question is about tab key. When I use it, it doesn't work as one expects, meaning autocompletion again. it creates 4 to 5 spaces instead. How can I use tab instead of ctrl+space on Vscode and Jupyter?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于第一个问题,没有办法获得名称。
对于第二个问题, tab 通常意味着4 空间。您可以在Vscode接口的右下角更改它。
For the first question, there is no way to gain the name.
For the second question, TAB means 4 space usually. You can change it in the lower right corner of the vscode interface.
You can also change the size of TAB.