How to skip authentication on some subpaths such as /mercury?

I want to skip authentication when someone access
10.61.241.133:8000/user/username/mercury.
Is this possible? If yes how to achieve this?

Maybe it’s better to ask why you want to disable all authentication (i.e. allow all people and computers with access to the ip address to run arbitrary code without restriction).

While this is not strictly supported because it would be a major security problem to launch unauthenticated Jupyter servers, you can change c.Spawner.cmd to launch an unauthenticated server, e.g.

c.Spawner.cmd = ['jupyter-lab', '--ServerApp.token=']

Exactly what arguments you need to pass (e.g. --ip, --port) will depend on your Spawner, etc.