Jupyter

For remote, use

python -m notebook --ip 0.0.0.0 --port 8888 --allow-root
 
jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root # this works

Using jupyter lab:

jupyter lab

You can actually configure the defaults via

jupyter lab --generate-config

so that you don’t have to specify --ip 0.0.0.0 everytime.

Then, go inside ~/.jupyter/jupyter_lab_config.py and set to these:

c.ServerApp.ip = "0.0.0.0"
c.ServerApp.open_browser = False
c.ServerApp.port = 8888