While I haven’t tried with singularity yet, I suspect the concepts are similar to doing this on a more basic remote server…
If you haven’t run Jupyter remotely on a server and have the possibility to do that, you may want to try looking into that first. The main thing you need to do for that to work is establish an SSH tunnel between your local machine and the serve. So the correct port gets forwarded between machines so you can connect from your browser as if the Jupyter notebook was running on your local machine. I have helped several others get that part working on this forum. See the following for some useful discussions and resources:
- Answer to ‘Jupyter Notebook do not open after connecting to an EC2 instance’
- Answer to ‘Issue in Terminal with redirecting to Jupyter Notebook’
Docker container adds in another layer to this. You have to set the port forwarding additionally when you start the container. Reading the following may help you: