I did some search, and this can be done with Jupyter notebook by installing some nb-extensions. But I want a jupyter-lab version.
I want: when output ipynb to HTML, the code block and be toggle ON and OFF.
like this one, by clicking some button, the code cell can be expand(by default it is collapsed)
I also found this answer, but this one made code togglable one by one, is there a batched method? So I don't need to add that function one block by one block.