How to disable jupyter lab creating new workspace

For example, given this url:
http://localhost:8889/lab/workspaces/default

When I open it in another tab (or browser), it will auto redirect to something like http://localhost:8889/lab/workspaces/auto-n?reset and creates a workspace.

I want to stop this behavior and stick with the existing workspace.
If one cannot access the same workspace by two tabs, then kick the old session out.

1 Like

I think there is no switch for this right now. If you open a new issue on jupyterlab github I am happy to vouch for adding one.

2 Likes

Hi @krassowski , thanks for your reply.

I am thinking about wrinting a custom jupyter extension to address this.

Any hacky and simple way to achive this? This is for personal use, so considerations like data consistency is minimal.