Jupyter 简明教程

Jupyter Notebook - User Interface

在 Jupyter 的用户界面中,在标题栏的徽标旁边显示文件名。

In the user interface of Jupyter, just beside the logo in the header, the file name is displayed.

jupyter filename creation

你可以在标题栏下方找到菜单栏。每个菜单都包含许多选项,将在以后讨论。

You can find the menu bar below the header. Each menu contains many options that will be discussed later.

jupyter notebook menubar

构成工具栏的图标行可帮助用户执行通常需要执行的操作

A row of icons forming toolbar helps user to perform often required operations

jupyter notebook toolbar

笔记具有两种模式 - Command modeEdit mode 。当某个单元格被单击时,笔记本会进入编辑模式。请注意这个铅笔符号就在内核名称旁边。

The notebook has two modes − Command mode and Edit mode. Notebook enters edit mode when a cell is clicked. Notice the pencil symbol just besides name of kernel.

jupyter notebook editmode

内核指示符符号就显示在内核名称的右侧。请注意:空心圆表示内核空闲,实心圆表示内核繁忙。

Kernel indicator symbol is displayed just to the right of kernel name. Note that a hollow circle means kernel is idle and solid circle means it is busy.

jupyter notebook kernel indicator

File Menu

以下是在文件菜单中提供的选项 -

The following are the options available in the File menu −

Sr.No.

File menu & Description

1

New notebook choose the kernel to start new notebook

2

Open Takes user to dashboard to choose notebook to open

3

Save as save current notebook and start new kernel

4

Rename rename current notebook

5

Save saves current notebook and stores current checkpoint

6

Revert reverts state of notebook to earlier checkpoint

7

Download export notebook in one of various file formats

下面显示了可用的文件格式:

The file formats that are available are shown below −

file formats

Edit Menu

编辑菜单包含可以执行剪切、复制和粘贴单元格、删除选定的单元格、拆分和合并单元格、在笔记本中找到并替换、剪切/复制附件和插入图像的按钮。

Edit menu consists of buttons to perform cut, copy and paste cells, delete selected cell, split and merge cells, move cells up and down, find and replace within notebook, cut/copy attachments and insert image.

View Menu

这些菜单中的按钮可以帮助我们隐藏/显示标题、工具栏和单元格编号。

Buttons in this menu help us to hide/display header, toolbar and cell numbers.

Insert Menu

此菜单为您提供了在当前单元格之前或之后插入单元格的选项。

This menu gives you options for inserting cell before or after the current cell.

Cell Menu

此菜单中的选项允许用户在笔记本中运行所有或特定单元格。您还可以将单元类型设置为代码类型、标记或原始 nbconvert 类型。

The options in this menu let user run all or specific cells in the notebook. You can also set the cell type to code type, markdown or raw nbconvert type.

Kernel Menu

您可以从这个菜单中启动、中断、重启或者关闭内核。您还可以启动一个新的内核。

From this menu you can start, interrupt, restart or shutdown the kernel. You can also start a new kernel.

Widgets Menu

您可以从这个菜单中保存、清除、下载或者内嵌部件状态。

From this menu you can save, clear, download or embed widget state.

Help menu

此菜单显示各种预定义的键盘快捷键。您还可以按您的方便编辑快捷键。

Various predefined keyboard shortcuts are displayed from this menu. You can also edit the shortcuts as per your convenience.