nilearn_demos short scripts for demonstrating and teaching nilearn features can be converted to jupyter notebooks by installing sphinx-gallery (https://sphinx-gallery.github.io/) and using sphx_glr_python_to_jupyter.py.