This example shows how to run a jupyter notebook server within singularity container.
$ sudo singularity create -s 1200 jupyter.img
$ sudo singularity bootstrap jupyter.img Singularity
$ singularity pull shub://906
OR
$ singularity pull shub://kma/singularity-jupyter:master
$ singularity run jupyter.img
This will starts jupyter server on port 8888. The current directory will be used as the notebook direcory. You can connect to the server and select the notebook file python_heat2d.ipynb.