[英]How to hide Out[] cells in jupyter notebook
After executing a cell which becomes the In[x]
cell, I see an Out[x]
cell immediately even if there is no output. 执行成为
In[x]
单元的单元后,即使没有输出,我也会立即看到Out[x]
单元。 How can I configure Jupyter notebook to hide these Out[x]
cells and only print the console output from a print statement? 如何配置Jupyter笔记本以隐藏这些
Out[x]
单元,仅打印来自print语句的控制台输出?
You can add a semicolon in you in-cell. 您可以在单元内添加分号。
With output: 输出:
In [1]: 1
Out[1]: 1
Without output: 没有输出:
In[1]: 1;
The trailing semicolon ends the line and adds a new, empty line, that has no visible output. 尾随分号结束该行并添加一条新的空行,该行没有可见的输出。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.