Juypter项目In/Out括号表示法 [英] Project Juypter In / Out Bracket Notation

查看:321
本文介绍了Juypter项目In/Out括号表示法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图了解Juypter项目的工作方式(以前是IPython Notebook),我对单元格标识符的In []和Out []感到非常困惑,我理解In =输入单元格,Out =输出单元格,但是我我对括号内数字的重要性感到困惑.这意味着什么?它在输出中看起来非常突出,我真的感到困惑,为什么我找不到关于该代表什么的任何文档以及它在那里的原因.我一直在搜索过去一个小时.

I'm trying to learn how project Juypter works (formerly IPython Notebook) I've very confused by the cell identifier's In[] and Out[] I understand In = an input cell and Out = an output cell, but I'm baffled by the significance of the number within the brackets. What does that signify? It seem very prominent in the output, and I'm really baffled why I can't find any documentation on what that represents, and why it's there. I've been searching for the past hour.

搜索词:"ipython笔记本在括号符号索引中"以及这些单词的变体组合.我已经遍历了许多教程和文档,网址为: http://jupyter-notebook.readthedocs.org/en/latest/以及 http://jupyter.readthedocs.org/en/latest/index.html .我在画一个空白.

Search terms: "ipython notebook in out bracket notation indexes" and variations combinations of those words. I've been thru numerous tutorials as well as the documentation at: http://jupyter-notebook.readthedocs.org/en/latest/ and at http://jupyter.readthedocs.org/en/latest/index.html . I'm drawing a total blank.

单元格符号In[7]Out[7]表示什么.为什么这些数字在那里?

What does the cell notation In[7] and Out[7] signify. Why are those numbers there?

推荐答案

InOut之后的数字是

The numbers after In and Out are the execution counts associated with the cells: the first cell executed gets 1, the second 2, and so on:

执行计数器(提示编号)

Execution counter (prompt number)

对于store_history = True发出的所有执行请求,内核应该具有一个单调递增的计数器.此计数器用于填充In [n]和Out [n]提示.该计数器的值将作为所有execute_reply和execute_input消息的execution_count字段返回.

The kernel should have a single, monotonically increasing counter of all execution requests that are made with store_history=True. This counter is used to populate the In[n] and Out[n] prompts. The value of this counter will be returned as the execution_count field of all execute_reply and execute_input messages.

这篇关于Juypter项目In/Out括号表示法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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