Is there a way to selectively hide one specific input or output cell in IPython notebook?
I could only find the below code to show / hide all input cells.
h
Here's a method that allows you to hide cells from the HTML/PDF output by editing the cell metadata only.
Versions I'm using:
$ jupyter notebook --version
4.1.0
$ jupyter nbconvert --version
4.2.0
jupyter notebooklocalhost:8888/nbextensions (or whatever port you started on) and activate Printviewlocalhost:8888/tree, create a new notebook and go into itprint("You can see me") #but not meView > Cell Toolbar > Edit MetadataEdit Metadata button now showing to the top right of the cell'hide_input':True to the json e.g. mine looked like {
"collapsed": false,
"hide_input": true,
"trusted": true
} afterjupyter nbconvert --to pdf --template printviewlatex.tplx notebookname.ipynb (if your notebook is called notebookname.ipynb.ipynb)You should now have a document called notebookname.pdf in the directory. Hopefully it should have just the text You can see me in it...fingers crossed.