微软为其visualstudio代码编辑器(visualstudio Code,VS-Code)发布了一个新版本的Python语言扩展,它将Jupyter笔记本的功能分解成一个独特的VS-Code扩展,并聘请了Python的创建者,现在Python是前两大编程语言,也是甚至比Java更受欢迎,甲骨文在2008年收购Sun Microsystems后获得了广泛使用的软件。

Python的受欢迎程度也通过下载https://marketplace.visualstudio.com/items?项目名称=毫秒-蟒蛇.python“target=“_blank”rel=“noopener noreferrer nofollow”data component=“externalLink”>微软VS代码的Python扩展,是市场上最流行的代码编辑器之一。

Python的上升归功于数据科学和机器学习,但它也是后端系统自动化和脚本编写的关键语言。它之所以受欢迎是因为它易于学习,允许非开发人员使用该语言。

据RedMonk分析师史蒂夫·奥格雷迪(Steve O'Grady)称,它已成为首选语言,并用于数千个小项目。这种语言是35年前由64岁的荷兰程序员创造的https://twitter.com/gvanrossum/status/1326932991566700549“target=”nu blank“rel=”noopener noreferrer“data component=”externalLink“>Guido van Rossum,本周他决定退出“无聊”的退休生活,为微软工作,现在他是一个巨大的开源倡导者,在开发工具中支持开源Python,包括Visual Studio集成开发环境(IDE)。

它还将其托管在Azure笔记本电脑,并使用它构建最终用户体验,如Azure命令行界面(CLI)。微软认为Python是一种重要的编程语言。

数据科学是Python成功的关键,也是微软吸引开发者到其Azure云的计划的一部分。Python数据科学故事的核心组件之一是Jupyter笔记本电脑,它不仅支持Python,但其他流行的数据科学语言,如Julia和R。它允许用户共享实时代码、公式、文本和可视化效果https://github.com/Microsoft/vscode-python/blob/main/CHANGELOG.md“target=”\u blank“rel=”noopener noreferrer nofollow“data component=”externalLink“>Microsoft针对VS代码的Python扩展已经支持Jupyter笔记本电脑一年了,Microsoft决定扩展Jupyter笔记本的功能,以改进对其他数据科学语言的支持。

“对Python扩展的Jupyter支持已重构为Jupyter扩展,今天发货,“克劳迪娅·里吉奥说,Python data science和AI Tools for VS Code的程序管理器

“这将允许其他语言使用同样丰富的Jupyter笔记本电脑体验。对于Python来说,体验没有任何变化,因为Jupyter扩展现在与Python扩展一起安装。

新的扩展反映了微软对Jupyter笔记本电脑与Python、R、Julia一起使用的理解,和Scala。

Microsoft的主要程序经理Rong Lu说:““为了让其他语言也能获得同样丰富的Jupyter笔记本体验,我们对Jupyter进行了重构对Python扩展和我们今天发布的Jupyter扩展的支持。

“通过依赖于Jupyter扩展,这使得为Python以外的语言构建新的Jupyter体验变得更加容易,它本身不依赖于Python运行时或Python扩展。“

PC出货量:谷歌Chromebook销量飞涨,但台式机却暴跌

apple m1速度测试:新Arm MacBook Air彻底摧毁了基于Intel的MacBook Pro

a, .nav-item > a, .dropdown-menu a'); allLinks.forEach(link => { let href = link.getAttribute('href'); if (!href || href === '#' || href === 'javascript:;') return; // 4. 提取菜单中的核心路径 // 例如 /articles.html -> articles let cleanHref = href.replace(/^\/|\/$/g, '').replace(/\.(html|php)$/, '').toLowerCase(); let isMatch = false; // 5. 精确匹配逻辑 if (cleanHref === 'index') { // 只有当前是首页时,才高亮首页 if (cleanPath === 'index') isMatch = true; } else { // 如果当前路径完全等于菜单路径 (如 /articles 匹配 /articles) // 或者当前路径以 "菜单路径/" 开头 (如 /articles/154 匹配 /articles) // 或者当前路径包含 "菜单路径." (防某些带点号的特殊情况) if (cleanPath === cleanHref || cleanPath.startsWith(cleanHref + '/')) { isMatch = true; } } // 6. 如果匹配成功,加上高亮 if (isMatch) { link.classList.add('active'); // 如果匹配的是下拉菜单里的子项,顺便把它的父级分类也高亮 const parentNavItem = link.closest('.nav-item'); if (parentNavItem && !parentNavItem.classList.contains('active')) { const parentLink = parentNavItem.querySelector('a'); if (parentLink) parentLink.classList.add('active'); } } }); })(); // ================= 移动端菜单逻辑 ================= const toggle = document.getElementById("menuToggle"); const nav = document.getElementById("navLinks"); // 1. 汉堡按钮:切换主菜单显示/隐藏 if (toggle && nav) { toggle.addEventListener("click", function (e) { e.stopPropagation(); const expanded = this.getAttribute("aria-expanded") === "true"; this.setAttribute("aria-expanded", String(!expanded)); nav.classList.toggle("active"); }); } // 2. 处理下拉子菜单的展开/折叠 if (window.innerWidth <= 768) { const navItems = document.querySelectorAll(".nav-item"); navItems.forEach((item) => { const titleLink = item.querySelector("a"); const dropdownMenu = item.querySelector(".dropdown-menu"); const arrowIcon = item.querySelector(".arrow-icon"); if (titleLink && dropdownMenu) { titleLink.addEventListener("click", function (e) { e.preventDefault(); // 阻止链接跳转 e.stopPropagation(); // 手风琴效果:收起其他已展开的菜单 navItems.forEach((otherItem) => { if (otherItem !== item) { const otherMenu = otherItem.querySelector(".dropdown-menu"); const otherArrow = otherItem.querySelector(".arrow-icon"); if (otherMenu) otherMenu.classList.remove("active"); if (otherArrow) otherArrow.style.transform = "rotate(0)"; } }); // 切换当前菜单 dropdownMenu.classList.toggle("active"); if (arrowIcon) { arrowIcon.style.transform = dropdownMenu.classList.contains( "active", ) ? "rotate(180deg)" : "rotate(0)"; } }); } }); } // 3. 点击普通菜单项后,自动关闭整个主菜单 if (nav) { nav.querySelectorAll("a").forEach(function (link) { if (!link.querySelector(".arrow-icon")) { link.addEventListener("click", function () { nav.classList.remove("active"); if (toggle) toggle.setAttribute("aria-expanded", "false"); }); } }); } // ================= 返回顶部逻辑 ================= (function () { const backToTop = document.getElementById("backToTop"); window.addEventListener("scroll", function () { if (window.scrollY > 300) { backToTop.classList.add("show"); } else { backToTop.classList.remove("show"); } }); backToTop.addEventListener("click", function () { window.scrollTo({ top: 0, behavior: "smooth" }); }); })(); // 多语言 document.addEventListener("DOMContentLoaded", function() { let path = window.location.pathname; let isEn = path.startsWith('/en/'); if (isEn) { document.cookie = "my_lang=en; path=/; max-age=" + (30 * 24 * 3600); } else { document.cookie = "my_lang=zh; path=/; max-age=" + (30 * 24 * 3600); } // 【2. 首页记忆】如果访问的是首页(没带 en),但记忆是英文,前端自动跳去英文首页 if (!isEn && (path === '/' || path === '/index.html')) { if (document.cookie.includes('my_lang=en')) { window.location.replace('/en' + path); return; } } // 【3. 菜单不掉线】如果是英文页面,自动给菜单链接加上 /en/ if (isEn) { document.querySelectorAll('a').forEach(function(link) { let href = link.getAttribute('href'); // 站内链接,且没带 /en/ if (href && href.startsWith('/') && !href.startsWith('/en/') && !href.startsWith('http')) { link.setAttribute('href', '/en' + href); } }); } });