简体   繁体   English

Jupyter 笔记本“下载为 python”

[英]Jupyter notebook "download as python"

I've been searching everywhere for this but somehow I can't seem to find it.我一直在到处寻找这个,但不知何故我似乎找不到它。

If you download code from Jupyter notebook and download it as python (.py),如果您从 Jupyter notebook 下载代码并将其下载为 python (.py),

then does the computer create a windows notepad for the .py file?那么计算机是否为 .py 文件创建了一个 Windows 记事本? (Yes I'm using windows not mac) (是的,我使用的是 windows 而不是 mac)

This is a pretty simple question but I really wish to know if this is a normal thing for windows...这是一个非常简单的问题,但我真的很想知道这对于 Windows 来说是否正常......

When I download code in Jupyter notebook as python (.py), it is downloaded as a notepad.当我将 Jupyter notebook 中的代码下载为 python (.py) 时,它会作为记事本下载。

Is this what it's supposed to do??这是它应该做的吗??

The problem is your default application for files is set as Notepad in windows.问题是您的默认文件应用程序在 Windows 中设置为记事本。 That's why it shows to open with Notepad.这就是为什么它显示用记事本打开。 Since the file comes with *.py extension it will also consider to open in notepad because ultimately *.py is a file type.由于文件带有 *.py 扩展名,它也会考虑在记事本中打开,因为最终 *.py 是一种文件类型。 You can try open with option to open your favorite python editor to work on the file.您可以尝试使用 open 选项打开您最喜欢的 Python 编辑器来处理文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM