![](/img/trans.png)
[英]How to save a default python env for VSCode Jupyter Notebooks
[英]How to hide cell output in jupyter notebooks (VSCode + Python Extension)?
我将 VSCode 1.38 版与 python 扩展 (ms-python.python) 结合使用,以便能够在 VSCode 中修改 jupyter notebook。 是否有任何选项可以隐藏特定单元格的 output(例如,在一个单元格中绘制多个图时)?
今天碰到同样的问题。 似乎 jupyter notebook 的快捷方式已集成到 Visual Studio 代码中的 jupyter notebook 中。 如果在单元格上按“o”,它将隐藏单元格 output。
将此作为单元格的第一行。
%%capture
#Then the rest of your code in the cell...
来自该单元的 output 不会打印在笔记本电脑内。
似乎目前没有选择。
这里的官方文档没有提到这一点。
https://code.visualstudio.com/docs/python/jupyter-support
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.