[TECH-262] Auto detect jupyter server endpoints and token
Depending on notebook/lab that is being used, we ca use jupyter <lab/notebook> list to list the active jupyter servers.
Example response from jupyter command
❯ jupyter lab list --jsonlist
[
{
"base_url": "/",
"hostname": "localhost",
"password": false,
"pid": 68480,
"port": 8888,
"root_dir": "/",
"secure": false,
"token": "f41a090192805f1150153421fd43282b7d6d8b0b69e27576",
"url": "http://localhost:8888/",
"version": "1.3.0"
}
]
We will try executing jupyter lab and jupyter notebook to get the endpoint URL and the token. In case both the commands fail, we will fallback to hard coded default for local and colab envs.