How to hide cell output in jupyter notebooks (VSCode + Python Extension)?

Seems like there's no option for that at the moment.
The official document here doesn't mention that.
https://code.visualstudio.com/docs/python/jupyter-support


Bumped into the same problem today. It seems to be that the shortcuts from jupyter notebook are integrated into the jupyter notebook in visual studio code. If you press "o" on a cell, it will hide the cell output.


Put this as the first line of your cell.

%%capture 
#Then the rest of your code in the cell...

The output from that cell won't be printed inside the notebook.