如何在Jupyter Notebook Vscode上获得塔属自动象征?

发布于 2025-01-31 17:11:28 字数 406 浏览 5 评论 0原文

有什么办法可以在jupyter笔记本上拥有​​远程自动Import功能?

现在,塔的行为就像他每次在笔记本上编写功能时都不知道包裹,如果我切换到.py文件,它可以完美地工作。

"train_test_split" is not defined Pylance(reportUndefinedVariable)

每次在笔记本上工作时都必须手动导入,这真是令人讨厌。

Is there any way I can have the Pylance auto-import function on Jupyter Notebooks?

Right now Pylance acts like he doesn't know the package each time I write a function when on a notebook, if I switch to a .py file it works perfectly.

"train_test_split" is not defined Pylance(reportUndefinedVariable)

Image of that ^

It's such an annoyance having to import manually each time when working on notebooks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

¢好甜 2025-02-07 17:11:28

依赖性分析不适用于IPYNB Python细胞。

您可以禁用此扩展名。手动将单元的右下角改为Python。

enter image description here

Dependency Analytics doesn't work with ipynb python cells.

You can disable this extension. Manually change the lower right corner of the cell to python.

enter image description here

柠北森屋 2025-02-07 17:11:28

PY-LANCE团队在这里,我的问题已经得到了我的问题。 。

该功能尚未实现,但目前已在Insider VS代码版本中可用。

My question has been answered by the Py-Lance team here.

The feature wasn't implemented yet but is right now available in the insider VS Code version as of now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文