简体   繁体   中英

What does In[num] mean in jupyter notebooks?

I know that In[*] means the kernel is running

在此处输入图像描述

But what does In[93] mean?

在此处输入图像描述

Does that mean the total number of seconds to execute the cell or is that the line number?

It's effectively a line number.

In is an array of all of the inputs you have entered during a session, and Out is a dictionary of the results from the corresponding inputs. You can use these to reference previous inputs and results; for example:

 In[1]:  0x7b
Out[1]:  123

 In[2]:  0x1c8
Out[2]:  456

 In[3]:  Out[1] + Out[2]
Out[3]:  579

 In[4]:  In
Out[4]:  ['', '0x7b', '0x1c8', 'Out[1] + Out[2]', 'In']

 In[5]:  Out
Out[5]:  {1: 123,
          2: 456,
          3: 579,
          4: ['', '0x7b', '0x1c8', 'Out[1] + Out[2]', 'In', 'Out']}

Simply speaking it is the total number of times you have runned the cells and that number on a particular cell in "In[num]" is the number at which you runned that cell latest. hope it helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM