如何在Visual Studio 2017中使用Jupyter Notebook? [英] How to Use a Jupyter Notebook in Visual Studio 2017?

查看:713
本文介绍了如何在Visual Studio 2017中使用Jupyter Notebook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2017现在支持使用Jupyter Notebook.

Visual Studio 2017 now supports use of a Jupyter Notebook.

在Visual Studio 2017中绕过Python

根据MSDN博客文章:

According to the MSDN blog post:

要使用笔记本,只需将IPYNB文件下载为.py文件,然后在Visual Studio中将其打开.您会看到markdown单元格已变成注释,并且每个单元格都是可折叠且可扩展的.

To work with a notebook, simply download your IPYNB file as a .py file and open it in Visual Studio. You’ll see that markdown cells have been turned into comments and each cell is collapsible and expandable.

当我下载IPYNB文件时,将其重命名为.py文件,它在VS编辑器中显示为包含markdown的JSON文件.我期待看到降价文件.我想念什么?

When I download a IPYNB file, rename to a .py file, it displays in the VS editor as a JSON file containing markdown. I was expecting to see a markdown file. What am I missing?

推荐答案

我认为这是下载as的意思. 您需要运行Notebook,然后单击File-> Download as-> Pythong(.py)

This is what I believe they mean with download as. You need the Notebook running then click on File-> Download as-> Pythong(.py )

http://imgur.com/qbWpIlE

一旦从笔记本电脑下载了Python文件,就可以在Visual Studio中打开它

Once you have downloaded your Python file from the notebook you can open it in visual studio

添加了其余答案

这篇关于如何在Visual Studio 2017中使用Jupyter Notebook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆