jupyter notebook 保存
时间: 2023-10-05 07:08:58 浏览: 97
Jupyter Notebook是一个开源的交互式编程环境,通过网页浏览器进行操作。在使用Jupyter Notebook时,你可以通过以下步骤保存你的Notebook文件:
1. 找到notebook_dir并添加上你自己的文件路径,并保存。例如,你的文件路径为'E:\jupyter-notebook'。
相关问题
jupyter notebook保存
在Jupyter Notebook中保存你的工作非常简单。你可以通过以下步骤保存你的笔记本:
1. 点击菜单栏中的 "文件" 选项。
2. 选择 "保存" 或 "另存为"。
3. 如果是第一次保存该文件,则需要为文件命名,并选择保存的位置。
4. 如果文件已经被保存过,则直接选择 "保存" 即可。
你也可以使用快捷键 "Ctrl+S" 或 "Cmd+S" (在Mac电脑上) 来快速保存文件。无论你使用哪种方法,保存文件后,你的工作就已经被保存到你指定的位置了。
jupyter notebook保存图片
可以使用matplotlib库中的savefig()函数或者Pillow库中的save()函数在Jupyter Notebook中保存图片。例如,使用Matplotlib库中的savefig()函数可以这样实现:
```python
import matplotlib.pyplot as plt
# 绘制图像
plt.plot([1, 2, 3], [4, 5, 6])
# 保存图像
plt.savefig('my_figure.png')
```
注意,在Jupyter Notebook中保存图片时,需要在最后一行添加plt.show()以显示图像并将其保存。
阅读全文
相关推荐















