如何将文件保存到Jupyter Notebook中的目录中? [英] How to save a file into a directory in Jupyter notebook?

查看:617
本文介绍了如何将文件保存到Jupyter Notebook中的目录中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在以下位置调用"jupyter笔记本":

I invoke "jupyter notebook" under:

 [abigail@localhost anaconda3]$ jupyter notebook

默认情况下,当我单击文件" =>保存"时,它将以扩展名"ipynb"保存到anaconda3/目录.

By default, it saves to the directory of anaconda3/ with an extension of "ipynb" when I click "File" => "Save".

如何将其保存到anaconda3/下的目录,而不是默认位置?笔记本中没有另存为"命令吗?

How to save it to a directory under anaconda3/, instead of the default location? There is not a "save as" command in notebook?

推荐答案

您可以使用文件"->下载为"->笔记本(.ipynb)"选项将笔记本保存到您选择的位置.从菜单中.

You can save a notebook to a location of your choice by using the "File" -> "Download as" -> "Notebook (.ipynb)" option from the menu.

或者,您可以从其他目录启动笔记本服务器,它将所有笔记本保存到该目录.

Alternatively you can start your notebook server from a different directory and it will save all notebooks to that directory.

第三个选项是导航到要在树形视图中将笔记本保存到的目录" http: //127.0.0.1:8888/tree ",然后创建笔记本.

A third option is to navigate to the directory you want the notebook to be saved to in the tree view "http://127.0.0.1:8888/tree" prior to creating the notebook.

这篇关于如何将文件保存到Jupyter Notebook中的目录中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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