tsc*_*elz 15 python visual-studio-code jupyter-notebook
我将 VSCode 1.38 版与 python 扩展 (ms-python.python) 结合使用,以便能够在 VSCode 中修改 jupyter 笔记本。是否有任何选项可以隐藏特定单元格的输出(例如,在一个单元格中绘制多个图时)?
小智 37
今天遇到了同样的问题。好像是jupyter notebook的快捷方式是在visual studio code中集成到jupyter notebook的。如果在单元格上按“o”,它将隐藏单元格输出。
将其作为单元格的第一行。
%%capture
#Then the rest of your code in the cell...
Run Code Online (Sandbox Code Playgroud)
该单元的输出不会打印在笔记本内。
归档时间: |
|
查看次数: |
6947 次 |
最近记录: |