Project Jupyter 输入/输出括号表示法
Project Juypter In / Out Bracket Notation
我正在尝试了解项目 Juypter 的工作原理(以前称为 IPython Notebook)我对单元格标识符的 In[] 和 Out[] 感到非常困惑我理解 In = 一个输入单元格和 Out =一个输出单元格,但我对括号内数字的重要性感到困惑。这意味着什么?它在输出中看起来非常突出,我真的很困惑为什么我找不到任何关于它代表什么以及它为什么存在的文档。过去一个小时我一直在寻找。
搜索词:"ipython notebook in out bracket notation indexes" 以及这些词的变体组合。我浏览了很多教程和文档:
http://jupyter-notebook.readthedocs.org/en/latest/ 并且在
http://jupyter.readthedocs.org/en/latest/index.html。我正在画一片空白。
单元格符号 In[7]
和 Out[7]
表示什么。为什么会有这些数字?
In
和Out
之后的数字是与单元格关联的execution counts:第一个执行的单元格获得1,第二个2,依此类推:
Execution counter (prompt number)
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 的工作原理(以前称为 IPython Notebook)我对单元格标识符的 In[] 和 Out[] 感到非常困惑我理解 In = 一个输入单元格和 Out =一个输出单元格,但我对括号内数字的重要性感到困惑。这意味着什么?它在输出中看起来非常突出,我真的很困惑为什么我找不到任何关于它代表什么以及它为什么存在的文档。过去一个小时我一直在寻找。
搜索词:"ipython notebook in out bracket notation indexes" 以及这些词的变体组合。我浏览了很多教程和文档: http://jupyter-notebook.readthedocs.org/en/latest/ 并且在 http://jupyter.readthedocs.org/en/latest/index.html。我正在画一片空白。
单元格符号 In[7]
和 Out[7]
表示什么。为什么会有这些数字?
In
和Out
之后的数字是与单元格关联的execution counts:第一个执行的单元格获得1,第二个2,依此类推:
Execution counter (prompt number)
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.