Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I use version 1.38 of VSCode in combination with the python extension (ms-python.python) to be able to modify jupyter notebooks inside of VSCode. Is there any option to hide the output of specific cells (e.g. when plotting multiple plots in one cell)?

like image 331
tschmelz Avatar asked Oct 09 '19 13:10

tschmelz


People also ask

How do I hide cell output Jupyter?

Hide cell inputs If you add the tag hide-input to a cell, then Jupyter Book will hide the cell but display the outputs.

How do I hide cell output?

the last line of the cell, use a command like %%hide output , and the output would be hidden after finished running.

How do you remove the output from a Jupyter Notebook?

When you have Jupyter notebook opened, you can do this by selecting the Cell -> All Output -> Clear menu item.

How do you collapse a cell in Jupyter Notebook?

To collapse the heading, use the triangle on the left of the markdown cell.


1 Answers

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.

like image 67
LeSchwambo Avatar answered Sep 19 '22 13:09

LeSchwambo