微软发布 VS Code Python 插件 7 月更新

VS2010的Python插件及快速入门教程和具体源码 VS2010的Python插件及快速入门教程和具体源码 Python for VS2010 python-3.3.1 python快速入门教程 安装说明 立即下载

微软发布了 7 月的 Visual Studio Code Python 扩展更新,此版本总共修复了 51 个问题,其中包括:

  • 支持新的语言服务器:Pylance

  • Gather 扩展

  • 将 Notebook 导出为 HTML 和 PDF

  • 调试器的反向连接

支持新的语言服务器:Pylance

Pylance 是微软基于 Microsoft Pyright 静态类型检查工具的新语言服务器。它是一种快速的语言服务器,提供了许多功能来帮助用户编写代码,包括自动导入、无效代码检测、参数和返回类型信息等等。

Pylance 最近添加的一项功能是上下文高亮显示:

Gather 扩展

此版本增加了对新的实验性扩展 Gather 的支持。该工具用于分析并确定 Notebook 中必要的代码依存关系,并执行代码清除,自动执行此困难且耗时的任务。

用户无需手动删除未使用的导入内容或不相关的代码即可清理 Notebook。Gather 的最终文件格式可以使用 VS Code 设置 “Data Science: Gather To Script” 进行自定义。

将 Notebook 导出为 HTML 和 PDF

导出为 PDF 需要安装 TeX。

调试器的反向连接

现在可以使用反向连接更轻松地启动远程调试器会话。

将 ptvsd(VS Code 中的 Python 调试器)附加到 Python 进程或远程计算机时,需要设置远程 Python 进程,以便它侦听附加请求,然后在 VS Code 中启动调试器会话以附加到该进程。

但是该附加操作可能会很棘手,也许需要很长时间才能在远程计算机上启动,或者可能连接超时。

此版本支持将调试器配置为反向连接。现在可以将远程 Python 进程设置为连接到特定地址(端口号或主机和端口元组),并在 VS Code 中运行附加配置以开始侦听同一地址,以将其附加到进程。

现在,可以使用 VS Code 启动调试器,以便它开始侦听连接请求。当启动 Python 进程时,它将在定义的断点处停止。

其他改进
  • 支持连接到 Jupyter hub servers 使用服务器的基本 URL(即 https://111.11.11.11:8000)或用户文件夹(即 https://111.11.11.11:8000/user/theuser)。与密码认证一起使用。

  • 增加了配置是否扩展传递给调试器的参数的功能。

  • 更新至 jedi 17.1

  • 如果工作区根目录中存在 toml 文件,则自动激活扩展名。

更新说明:https://devblogs.microsoft.com/python/python-in-visual-studio-code-july-2020-release/

文章转载自 OSCHINA 社区 

[http://www.oschina.net]

近期十大热门:

每个程序员都是从菜鸟开始成长起来的,没有人一开始就是程序员高手。菜鸟爱编程,专注于分享趣味的编程技巧,不限于Java, Python ,Go, Javascript等语言,让菜鸟爱上编程,进阶成为高手。

菜鸟编程大本营

长按2秒,输入:【书单】

点这里,进菜鸟学PythonB站大本营
JAX/JAXlib GPU 加速版本安装教程(CUDA) 本文介绍了在Windows WSL2+Ubuntu22.04环境下配置JAX/JAXlib GPU加速版本的详细步骤。使用RTX 4060显卡,安装CUDA 12.4和cuDNN 8.9.7驱动,通过Miniconda创建Python 3.9虚拟环境。具体步骤包括:安装Miniconda、配置CUDA环境变量、安装cuDNN驱动、下载并安装JAX/JAXlib。最后通过测试代码验证GPU加速功能,成功检测到GPU并完成矩阵运算。整个过程配有详细命令和截图说明,适合需要搭建JAX GPU开发环境的用户参考。 阅读详情

相关推荐

Kali Linux下John the Ripper实战:从识别yescrypt哈希到破解zip压缩包(保姆级避坑指南)

本文详细介绍了在Kali Linux中使用John the Ripper工具从识别yescrypt哈希到破解zip压缩包的全过程。针对常见的'No password hashes loaded'报错,提供了两种解决方案,并扩展讲解了哈希识别、zip文件破解及性能优化技巧,是安全测试人员的实用指南。

weixin_29323365的博客 243

Python 最好用的8个VS Code扩展

很多时候,我们用到的代码片段都是类似的,比如for循环、try/catch等等,现在有了这个工具,我们只需要输入命令生成代码片段,然后再进行微调,就能完成功能的开发。此外,有些时候我们可能会忘记某些内置函数的用法,这个工具也能给你提供示例代码做参考,而不用你再去搜索引擎搜索示例,实在非常方便。经过一番查阅,我终于找到了能纠正VSCode缩进错误的扩展,它就是Python Indent,看看下面的示例,相信你也会安装它。做短文本分类的训练,清洗数据集的时候,这个工具大有用处。还有许多可定制的扩展设置。

大模型研究中心 1676

强化学习实战:如何用PPO算法训练一个超级马里奥AI(附完整代码)

本文提供了一份详细的强化学习实战指南,教你如何使用PPO算法训练一个能玩《超级马里奥》的AI智能体。内容涵盖从环境搭建、自定义奖励函数设计到PPO智能体的PyTorch完整实现,并附有可运行的代码,帮助开发者快速上手游戏AI开发。

h6j7k8l9p0的博客 953

微软再出神器,这次终于对Python下手了!

​微软又出良心工具了!微软于7月1日发布一款新的VS Code插件,名为Pylance,这个名称是向Monty Python的Lancelot致敬。Pylance距离截稿不足2天时间,VS Code插件安装量已经达到6800+。在2018年,Microsoft的Python团队发布了Python语言服务器,将Visual Studio的丰富Python IntelliSense支持引入了VS Code。

libaiup的博客 2388

RK3566添加ffpeg【Buildroot系统】

有很多人都发现了RK3566系列的芯片是不可以直接使用ffmpeg官网源码的!会报错: Not a video capture device. /dev/video0: No such device 接下来我们就来解决这个问题!!

honmy18的博客 4081

大模型事件抽取学习——论文学习笔记《LLMs Learn Task Heuristics from Demonstrations:......》

本篇博客介绍一篇发表在2024 ACL main上的文章:《LLMs Learn Task Heuristics from Demonstrations: A Heuristic-Driven Prompting Strategy for Document-Level Event Argument Extraction》 方向:大模型事件抽取 本篇博客为个人阅读论文的总结与笔记,在这里进行简单的分享 论文链接:https://arxiv.org/abs/

weixin_53751318的博客 1862

推荐一波VS Code上的优秀Python扩展

VS Code是一个强大的代码编辑器,也是很多Python开发者的选择。今天就来给大家推荐VS Code上8个好用的Python扩展。这个扩展是由微软官方提供的,支持但不仅限于以下功能:通过Pylint或Flake8支持代码检查在VS Code编辑器中调试代码IntelliSense支持自动完成,代码导航和格式化。支持Jupyter Notebook,Pytest和Unittest在编辑器中轻松切换Python环境这个插件很牛皮,能够实时可视化你的代码结果。

xx16755498979的博客 2883

IIR数字滤波器原理,设计方法及嵌入式应用

基于STM32的二阶直接II型巴特沃斯低通滤波器设计方法及应用

weixin_38342580的博客 1万+

Python VSCode 核心插件(装了直接开发)

一、Python Python 这个插件必装,它是微软 VSCode 开发团队自己开发的,亲儿子的级别,装了它就可以直接开始写代码了。 二、Code Runner 代码一键运行,支持超过 40 种语言。 三、Python Snippets(可选,推荐安装) 装 Python Snippets 插件的原因是,它自带了很多代码片段,上面的 Python 插件没有代码片段,也就是敲一个 for=> 它会给你一个 for 的代码案例片段,你只需要进行修改就行,这个插件看个人习惯。 四、Pytho

卡尔特斯 6442

单细胞分析(16)—— RNA Velocity 分析流程

RNA velocity 是一种强大的单细胞转录组分析工具,它可以预测细胞的未来状态,揭示发育轨迹,并用于探索细胞状态转换。RNA velocity 是一种通过单细胞 RNA 测序(scRNA-seq)数据推测细胞未来状态的分析方法。🚀**RNA velocity 提供了一个全新的角度来理解细胞的动态变化,为单细胞转录组分析带来了更深入的时空信息!

阅读文献,记录学习笔记 2992

Burpsuite系列安全渗透--自动扫描生成h5报告

第一章简述 Burpsuite是基于Java的用于web安全的工具,能够进行爬虫、代理、编码、密码爆破等任务,并支持对XSS漏洞、文件包含等漏洞的主动扫描或被动扫描。burpsuite2.0具体分为以下11个模块: Dashboard(仪表盘)——显示任务、实践日志等。 Target(目标)——显示目标目录结构的的一个功能。 Proxy(代理)——拦截HTTP/S的代理服务器,作为一个在浏览器和目标应用程序之间的中间人,允许你拦截,查看,修改在两个方向上的原始数据流。 Intruder(...

魔都虫师的博客 2894

VScode怎么安装老版本Python插件

不同版本的vscode需要的插件不一样,支持的解释器以及语言调试工具也不一样。

edward_zcl的博客 2826

廖雪峰Python教程[完整版]

廖雪峰的python教程整理的,已经排好版了,而且还是完整的,适合小白

vscode kite插件_微软发布 VS Code Python 插件 7 月更新

微软发布了 7 月的 Visual Studio Code Python 扩展更新,此版本总共修复了 51 个问题,其中包括:支持新的语言服务器:PylanceGather 扩展将 Notebook 导出为 HTML 和 PDF调试器的反向连接支持新的语言服务器:PylancePylance 是微软基于 Microsoft Pyright 静态类型检查工具的新语言服务器。它是一种快速的语言服务器,...

weixin_39835792的博客 819

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

微软 VS Code 重大更新!Jupyter 插件不再是 Python 专属

微软团队宣布已发布2020年11月版的Visual Studio Code Python 集成环境,并在此版本中引入了单独的Jupyter插件。关于Jupyter NotebookJup...

Python中文社区 7205

lwip-2.0.3

lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。

【Tools】——VS Code 插件推荐合集

1. 软件安装 下载地址:VS Code 选择合适的版本,安装即可 2. 汉化 安装完成后是这样的 如果需要汉化,ctrl + shift + x,打开插件商店,输入 chinese,然后选择第一个,点击 ‘install’ 安装完成后重启软件,显示如下,则汉化完成 3. 插件推荐 插件搜索:ctrl + shift + x 1. Python 提供了代码分析,高亮,规范化等很...

maixiaochai的博客 12万+

Pylance 性能更新,微软新的VS Code Python 插件已趋于稳定

微软宣布,Pylance —— 其在Visual Studio Code中对Python的快速且功能丰富的语言支持,现已正式完成测试,并达到其第一个稳定版本。本周早些时候,Pylance ...

Python中文社区 6540

jupyter中怎么把图形在一个单独的窗口显示_微软 VS Code 重大更新!Jupyter 插件不再是 Python 专属

微软团队宣布已发布2020年11月版的Visual Studio Code Python 集成环境,并在此版本中引入了单独的Jupyter插件。关于Jupyter NotebookJupyter Notebook是基于网页的用于交互计算的应用程序。其可被应用于全过程计算:开发、文档编写、运行代码和展示结果。简而言之,Jupyter Notebook是以网页的形式打开,可以在网页页面中直接编写代码和...

weixin_39532628的博客 788

微软:VSCode决定放弃Python3.7!

近日,根据 Python 软件基金会和 JetBrains 公布的 2022 年度开发者调查数据显示,93% 的开发者使用 Python 3,7% 的 Python 开发者仍在使用 Python 2(Python 2 已经在 2020 年结束了支持),2017 年是 75% 和 25%。此外,新的Python版本正在陆续赶上。在一年周期开始前的 5 个月时间里(跟上一个周期的末尾重合,因为每个周期的末尾基本上是修复 bug,时间比较充裕),各个开发者自由开发讨论,提交特性,但不合并到开发分支。

IT界那些事儿 1万+

inside插件_微软发布 VS Code Jupyter 插件!多语言的Jupyter Notebook支持来了!

北京时间 2020 年 11 月 12 日,微软发布了全新的 VS Code Jupyter 插件!Jupyter 插件将 Jupyter Notebook 的功能引入 VS Code,并且将会支持更多语言和使用场景。Jupyter Notebook 支持创建和共享包含代码、方程式、文本和可视化内容的文档,并且由于其简单性和交互性,它是广受欢迎的数据科学工具。韩老师在《Visual Studio ...

weixin_39980809的博客 327

Visual Studio Code 3 月 Python 扩展更新

Visual Studio Code Python 2022 年 3 月版已经发布,虽然这只是一个简单的版本,但是仍然包括一些新的功能,如对预发布版本的支持和对状态栏上解释器选择器的调整。

CSDN资讯 2250

VS Code Python 插件 8月更新!支持多个 Python 交互式窗口,支持 Pylance

微软发布了 8 月的 Visual Studio Code Python 扩展更新,此版本总共修复了总共 38 个问题。主要更新内容包括:支持多个 Python 交互式窗口这是用户呼声最...

cainiao_python的博客 1075

VS Code 6 月 Python 扩展更新

点击上方“编程派”,选择设为“设为星标”优质文章,第一时间送达!微软发布了 6 月的 Visual Studio Code Python 扩展更新,此版本除了解决 53 个问题外,还开发...

codingpy的博客 404

微软也爱Python!VS Code Python全新发布!Jupyter Notebook原生支持终于来了!

(由Python大本营付费下载自视觉中国)作者 | formulahendry来源 | 玩转VS Code(ID:vs_code)北京时间 2019 年 10 月 9 ...

Python大本营的博客 447

excel python插件 微软_微软 VS Code 重大更新!Jupyter 插件不再是 Python 专属

微软团队宣布已发布2020年11月版的Visual Studio Code Python 集成环境,并在此版本中引入了单独的Jupyter插件。关于Jupyter NotebookJupyter Notebook是基于网页的用于交互计算的应用程序。其可被应用于全过程计算:开发、文档编写、运行代码和展示结果。简而言之,Jupyter Notebook是以网页的形式打开,可以在网页页面中直接编写代码和...

weixin_39822493的博客 137
上一篇: 再见,Navicat!这个Pycharm的兄弟真香!
下一篇: Python 竟然也可以写网页前端了!
菜鸟学Python
博客等级 码龄9年 8170粉丝 571原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址