How do I hide code in Jupyter Lab

I have this code: from IPython.display import Image
img = ‘vizual.png’

I want to hide it, so when I export to HTML only image will appear and code will be invisible.
Thanks for help !

I think voila can help you achieve what you need. They create standalone applications from notebooks by hiding all the code.

Nbconvert supports removing pieces of cells using tags:

1 Like