In Jupyter first go to Settings, then Settings Editor, then Text Editor and check the case Code Folding. Tried it yet, no need for extension.