Closed realDuang closed 1 year ago
looks like there's a connection error with the jupyter server , her is the entry in the logs
SessionManager cannot enumerate kernelspecs. Returning default {}.
is this a valid jupyter server or some other server that kind of supports the jupyter rest api? out of curiosity how do you start this jupyter server and what are the versions of the packages?
looks like there's a connection error with the jupyter server , her is the entry in the logs
SessionManager cannot enumerate kernelspecs. Returning default {}.
That's the point! I think it seems like that jupyter extension cannot recognize my custom addRemoteJupyterServer well on web version, so it returns a default kernelSpecs? Because in the desktop side, it doesn't return the kind of problems.
FYI, here are the codes that add my custom kernel into jupyter extension connection list.
custom kernel into jupyter extension connection list.
thanks, my question is, how do you start the jupyter server? and what are the versions of them jupyter packages? are you using jupyter notebook or jupyter lab?
Please could you enable logging as follows:
Jupyter->Logging
verbose
Jupyter
output panel.Note: Please use chrome network inspector tab to check the requests sent out and why the requetsts might be failing.
Visual Studio Code - Insiders (1.74.0-insider, undefined, web)
Jupyter Extension Version: 2023.1.1003411034.
Python Extension Version: 2022.19.13351014.
Opened workspace folder.
debug 13:37:44.709: Found 0 cached controllers
debug 13:37:44.710: Creating 0 controllers
debug 13:37:44.923: Get Active Interpreter, Class name = x (started execution), Arg 1: undefined
error 13:37:44.923: Python extension is not exporting the jupyter API
debug 13:37:44.924: Full interpreter list is length: 0,
debug 13:37:44.924: Get Active Interpreter, Class name = x, completed in 2ms, has a falsy return value, Arg 1: undefined, Return Value: undefined
debug 13:37:53.250: Get Active Interpreter, Class name = x (started execution), Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb"
error 13:37:53.251: No remote controllers
debug 13:37:53.251: Get default Remote Controller, Class name = v, completed in 3ms, has a falsy return value, Arg 1: "jupyter-notebook", Arg 2: {"uri":{"$mid":1,"fsPath":"\\E3DB5011-6CB1-4B25-B318-207CFB504314\\cfdb9602-187d-45c0-918e-2719f4ebbbf3\\97b7c3dd-79c3-43b4-8a28-91912d6d5f19\\vscode-test.ipynb","_sep":1,"external":"tridentfs:/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb","path":"/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb","scheme":"tridentfs"},"version":0,"notebookType":"jupyter-notebook","isDirty":false,"isUntitled":false,"isClosed":false,"metadata":{"custom":{"cells":[],"metadata":{"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}},"nbformat":4,"nbformat_minor":0},"indentAmount":""},"cellCount":1}, Return Value: undefined
debug 13:37:53.252: Get Active Interpreter, Class name = x (started execution), Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb"
debug 13:37:53.252: Get Active Interpreter, Class name = x, completed in 2ms, has a falsy return value, Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb", Return Value: undefined
debug 13:37:53.252: Get Active Interpreter, Class name = x, completed in 0ms, has a falsy return value, Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb", Return Value: undefined
debug 13:37:53.253: Rank Kernels, Class name = p (started execution), Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb", Arg 2: "", Arg 3: {"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}}, Arg 4: undefined, Arg 5: "", Arg 6: undefined
info 13:37:53.253: Find preferred kernel for /E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb with metadata {"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}} & preferred interpreter <undefined>
debug 13:37:53.253: Rank Kernels, Class name = p, completed in 0ms, has a falsy return value, Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb", Arg 2: "", Arg 3: {"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}}, Arg 4: undefined, Arg 5: "", Arg 6: undefined
debug 13:37:53.254: Rank Kernels, Class name = p (started execution), Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb", Arg 2: "", Arg 3: {"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}}, Arg 4: undefined, Arg 5: "", Arg 6: undefined
info 13:37:53.254: Find preferred kernel for /E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb with metadata {"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}} & preferred interpreter <undefined>
debug 13:37:53.254: Rank Kernels, Class name = p, completed in 0ms, has a falsy return value, Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb", Arg 2: "", Arg 3: {"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}}, Arg 4: undefined, Arg 5: "", Arg 6: undefined
debug 13:37:53.254: Compute Preferred Controller, Class name = P, completed in 6ms, has a truthy return value, Arg 1: <Uri:/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb>, Arg 2: undefined, Arg 3: {"a":false,"b":{"j":false,"q":{"a":{},"b":{},"c":0}}}, Return Value: {}
debug 13:37:53.256: No controller, hence notebook communications cannot be initialized for editor /E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb
info 13:38:26.565: Creating server with url : https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
error 13:38:26.601: SessionManager cannot enumerate kernelspecs. Returning default {}.
debug 13:38:27.003: Disposing session manager
debug 13:38:27.003: SessionManager - dispose contents manager
debug 13:38:27.004: ShutdownSessionAndConnection - dispose session manager
debug 13:38:27.005: Finished disposing jupyter session manager
debug 13:38:27.009: Found 0 cached controllers
debug 13:38:27.009: Creating 0 controllers
debug 13:38:27.010: UniversalRemoteKernelFinder: get from cache
info 13:38:27.011: Checking for server existence.
info 13:38:27.011: Checking for server usability.
info 13:38:27.011: Starting notebook server.
info 13:38:27.012: Connecting to server
info 13:38:27.012: Connecting to process server
info 13:38:27.012: Connecting server kernel https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
Connecting to Jupyter server at https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
info 13:38:27.013: Creating server with url : https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
info 13:38:27.016: Connection complete server
info 13:38:27.016: Server started.
info 13:38:27.017: Creating server with url : https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
error 13:38:27.035: SessionManager cannot enumerate kernelspecs. Returning default {}.
debug 13:38:27.409: Disposing session manager
debug 13:38:27.409: SessionManager - dispose contents manager
debug 13:38:27.409: ShutdownSessionAndConnection - dispose session manager
debug 13:38:27.410: Finished disposing jupyter session manager
debug 13:38:27.410: UniversalRemoteKernelFinder: Writing 1 remote kernel connection metadata to cache
debug 13:38:27.413: Found 1 cached controllers
debug 13:38:27.413: Creating 1 controllers
debug 13:38:27.414: Creating notebook controller for startUsingRemoteKernelSpec & view jupyter-notebook (id='38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher') with name 'Python 3'
debug 13:38:27.415: Creating notebook controller for startUsingRemoteKernelSpec & view interactive (id='38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher') with name 'Python 3'
debug 13:38:27.416: Updating cache with Remote kernels startUsingRemoteKernelSpec:'38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher (interpreter id = undefined)'
, Added = startUsingRemoteKernelSpec:'38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher (interpreter id = undefined)'
, Updated =
, Removed =
debug 13:38:27.417: Get default Remote Controller, Class name = v, completed in 1ms, has a truthy return value, Arg 1: "jupyter-notebook", Arg 2: {"uri":{"$mid":1,"fsPath":"\\E3DB5011-6CB1-4B25-B318-207CFB504314\\cfdb9602-187d-45c0-918e-2719f4ebbbf3\\97b7c3dd-79c3-43b4-8a28-91912d6d5f19\\vscode-test.ipynb","_sep":1,"external":"tridentfs:/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb","path":"/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb","scheme":"tridentfs"},"version":1,"notebookType":"jupyter-notebook","isDirty":false,"isUntitled":false,"isClosed":false,"metadata":{"custom":{"cells":[],"metadata":{"kernel_info":{"name":"synapse_pyspark"},"kernelspec":{"display_name":"Synapse PySpark","name":"synapse_pyspark"},"language_info":{"name":"python"},"notebook_environment":{},"save_output":true,"spark_compute":{"compute_id":"/trident/default","session_options":{"conf":{"spark.livy.synapse.ipythonInterpreter.enabled":"true"},"enableDebugMode":false,"keepAliveTimeout":30}},"synapse_widget":{"state":{},"version":"0.1"},"trident":{"lakehouse":{}},"vscode":{"interpreter":{"hash":"8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7"}}},"nbformat":4,"nbformat_minor":0},"indentAmount":""},"cellCount":1}, Return Value: <Return value cannot be serialized for logging>
debug 13:38:27.417: TargetController found ID: startUsingRemoteKernelSpec:38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher for document /E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb
debug 13:38:27.420: Compute Preferred Controller, Class name = P, completed in 4ms, has a truthy return value, Arg 1: <Uri:/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb>, Arg 2: undefined, Arg 3: {"a":false,"b":{"j":false,"q":{"a":{},"b":{},"c":0}}}, Return Value: <Return value cannot be serialized for logging>
debug 13:38:30.075: start the kernel, options.disableUI=false for /E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb
debug 13:38:30.076: Start Jupyter Session in kernel.ts with disableUI = false
info 13:38:30.077: Starting Jupyter Session startUsingRemoteKernelSpec, 38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher for '/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb' (disableUI=false)
debug 13:38:30.477: createNewKernelSession 38003173f1f8c823da5fa52379c067eaf023fdfbf645dfea1b92ac8430435c27..python3./python./.-m#ipykernel_launcher
error 13:38:30.882: Backing file not supported: Error: Invalid response: 404
error 13:38:31.437: Failed to change kernel, re-throwing Error: Invalid response: 400
debug 13:38:31.438: Shutdown session -- complete
warn 13:38:31.439: Error occurred while trying to start the kernel, options.disableUI=false Error: Invalid response: 400
warn 13:38:31.440: Kernel Error, context = start Error: Invalid response: 400
info 13:38:31.441: Dispose Kernel '/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb' associated with '/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb'
debug 13:38:31.441: Kernel got disposed, hence there is no longer a kernel associated with /E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb
Thanks for your reply~ The jupyter verbose log is attached above.
Please change the verbose level as per the previouew message and send the logs for both, desktop and web
Here are some explaination and questions I have confused.
13:37:53.253
log, it seems have found preferred kernels, so why it still return the defult configs?13:38:30.882
log, 404 error is the API jupyterApi/versions/1/api/contents
to get content of the cell, and this API we are not supported. Is this API required for first connect?13:38:31.437
log, the 400 error is related by jupyterApi/versions/1/api/sessions
, and is caused by wrong kernelspec config. Our server can not receive the kernelspecs named python.Visual Studio Code (1.73.1, undefined, desktop)
Jupyter Extension Version: 2022.9.1303220346.
Python Extension Version: 2022.19.13251009.
Workspace folder c:\Users\longcheng\Workspace\vscode-simple-jupyter-notebook\samplenotebooks
info 13:42:09.848: ZMQ install verified.
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
debug 13:42:10.175: Get Active Interpreter, Class name = I (started execution), Arg 1: "/c:/Users/longcheng/Workspace/vscode-simple-jupyter-notebook/samplenotebooks"
debug 13:42:10.181: Get Custom Env Variables, Class name = w (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 13:42:10.181: Get Custom Env Variables, Class name = w (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 13:42:10.182: Get Custom Env Variables, Class name = w (started execution), Arg 1: "/c:/Users/longcheng/Workspace/vscode-simple-jupyter-notebook/samplenotebooks", Arg 2: "RunNonPythonCode"
debug 13:42:10.183: Get Custom Env Variables, Class name = w (started execution), Arg 1: "/c:/Users/longcheng/Workspace/vscode-simple-jupyter-notebook/samplenotebooks", Arg 2: "RunPythonCode"
debug 13:42:10.183: getCondaFile, Class name = k (started execution)
debug 13:42:10.184: getCondaVersion, Class name = k (started execution)
debug 13:42:10.184: getCondaVersionFromPython, Class name = k (started execution)
info 13:42:10.187: LSP Notebooks experiment is disabled -- not in treatment group
debug 13:42:10.191: getCondaFile, Class name = k, completed in 8ms, has a truthy return value
debug 13:42:10.191: getCondaVersion, Class name = k, completed in 7ms, has a truthy return value
debug 13:42:10.215: Get Custom Env Variables, Class name = w, completed in 34ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 13:42:10.216: Get Custom Env Variables, Class name = w, completed in 35ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 13:42:10.217: Get Custom Env Variables, Class name = w, completed in 35ms, has a truthy return value, Arg 1: "/c:/Users/longcheng/Workspace/vscode-simple-jupyter-notebook/samplenotebooks", Arg 2: "RunNonPythonCode"
debug 13:42:10.218: Get Custom Env Variables, Class name = w, completed in 34ms, has a truthy return value, Arg 1: "/c:/Users/longcheng/Workspace/vscode-simple-jupyter-notebook/samplenotebooks", Arg 2: "RunPythonCode"
info 13:42:15.169: Checking for server existence.
info 13:42:15.170: Checking for server usability.
info 13:42:15.170: Starting notebook server.
info 13:42:15.170: Connecting to server
debug 13:42:15.854: Get Active Interpreter, Class name = I (started execution), Arg 1: undefined
debug 13:42:15.855: Get Interpreters, Class name = I (started execution),
debug 13:42:15.855: Get Active Interpreter, Class name = I (started execution), Arg 1: undefined
debug 13:42:15.901: Get Active Interpreter, Class name = I, completed in 5726ms, has a truthy return value, Arg 1: "/c:/Users/longcheng/Workspace/vscode-simple-jupyter-notebook/samplenotebooks"
debug 13:42:15.901: Get Active Interpreter, Class name = I, completed in 47ms, has a truthy return value, Arg 1: undefined
debug 13:42:15.901: interpreterPackages getPackageInformation, Class name = r (started execution), Arg 1: {"interpreter":{"id":"C:\\USERS\\LONGCHENG\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON310\\PYTHON.EXE","sysPrefix":"C:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310","envType":"Global","envName":"","architecture":3,"sysVersion":"3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]","version":{"raw":"3.10.6","major":3,"minor":10,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.10.6 64-bit","detailedDisplayName":"Python 3.10.6 64-bit","uri":{"$mid":1,"external":"file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","path":"/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","scheme":"file"}}}
debug 13:42:15.901: Create activated Env, Class name = _ (started execution), Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"C:\\USERS\\LONGCHENG\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON310\\PYTHON.EXE","sysPrefix":"C:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310","envType":"Global","envName":"","architecture":3,"sysVersion":"3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]","version":{"raw":"3.10.6","major":3,"minor":10,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.10.6 64-bit","detailedDisplayName":"Python 3.10.6 64-bit","uri":{"$mid":1,"external":"file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","path":"/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","scheme":"file"}}}
debug 13:42:15.901: Getting activated env variables, Class name = V (started execution), Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>, Arg 3: true
debug 13:42:15.902: Getting activated env variables impl, Class name = V (started execution), Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:15.902: Getting activated env variables ourselves, Class name = V (started execution), Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:15.903: Getting activated env variables from Python, Class name = V (started execution), Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:15.903: Get Custom Env Variables, Class name = w (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 13:42:15.903: Cached data exists getEnvironmentVariables, <No Resource>
debug 13:42:15.903: Cached custom vars data exists getCustomEnvironmentVariables, <No Resource>
debug 13:42:15.904: Get Active Interpreter, Class name = I, completed in 49ms, has a truthy return value, Arg 1: undefined
debug 13:42:15.905: Get Custom Env Variables, Class name = w, completed in 2ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 13:42:16.099: Get Interpreter details, Class name = I (started execution), Arg 1: "/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe", Arg 2: undefined
debug 13:42:16.099: Got activation Env Vars without any caching. Key is \C:\USERS\LONGCHENG\WORKSPACE\VSCODE-SIMPLE-JUPYTER-NOTEBOOK\SAMPLENOTEBOOKS_8c496a5df87bd6248419c8a5784c9cb5fa01f7ae6cdcebbcb9686116b75bead7
debug 13:42:16.099: Get Interpreter details, Class name = I, completed in 1ms, has a truthy return value, Arg 1: "/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe", Arg 2: undefined
debug 13:42:16.099: Create ProcessService, Class name = h (started execution), Arg 1: undefined
debug 13:42:16.099: Get Custom Env Variables, Class name = w (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 13:42:16.099: Cached data exists getEnvironmentVariables, <No Resource>
debug 13:42:16.099: Getting env activation commands, Class name = V (started execution), Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:16.099: Getting activation commands for file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe
debug 13:42:16.099: Getting activation commands for file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe are not cached. May take a while.
debug 13:42:16.099: Get Custom Env Variables, Class name = w (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
debug 13:42:16.099: Cached data exists getEnvironmentVariables, <No Resource>
debug 13:42:16.099: Get Custom Env Variables, Class name = w, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 13:42:16.100: Get Custom Env Variables, Class name = w, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
debug 13:42:16.100: Create ProcessService, Class name = h, completed in 1ms, has a truthy return value, Arg 1: undefined
info 13:42:16.191: Got empty env vars with python c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe in 288ms
debug 13:42:16.191: Getting activated env variables from Python, Class name = V, completed in 288ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:16.191: Got env vars with python ext faster c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe
debug 13:42:16.191: Got env vars with python c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe in 289ms
debug 13:42:16.191: Getting activated env variables impl, Class name = V, completed in 289ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:16.191: Getting activated env variables, Class name = V, completed in 290ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>, Arg 3: true
debug 13:42:16.192: Create ProcessService, Class name = h (started execution), Arg 1: undefined
debug 13:42:16.192: Get Custom Env Variables, Class name = w (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 13:42:16.192: Cached data exists getEnvironmentVariables, <No Resource>
debug 13:42:16.192: Get Custom Env Variables, Class name = w, completed in 0ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode"
debug 13:42:16.192: Create ProcessService, Class name = h, completed in 0ms, has a truthy return value, Arg 1: undefined
debug 13:42:16.192: Creating execution process, Class name = _, completed in 0ms, has a truthy return value, Arg 1: {"interpreter":{"id":"C:\\USERS\\LONGCHENG\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON310\\PYTHON.EXE","sysPrefix":"C:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310","envType":"Global","envName":"","architecture":3,"sysVersion":"3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]","version":{"raw":"3.10.6","major":3,"minor":10,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.10.6 64-bit","detailedDisplayName":"Python 3.10.6 64-bit","uri":{"$mid":1,"fsPath":"c:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310\\python.exe","_sep":1,"external":"file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","path":"/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","scheme":"file"}}}, Return Value: {}
debug 13:42:16.193: Create activated Env, Class name = _, completed in 292ms, has a truthy return value, Arg 1: {"allowEnvironmentFetchExceptions":true,"interpreter":{"id":"C:\\USERS\\LONGCHENG\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON310\\PYTHON.EXE","sysPrefix":"C:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310","envType":"Global","envName":"","architecture":3,"sysVersion":"3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]","version":{"raw":"3.10.6","major":3,"minor":10,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.10.6 64-bit","detailedDisplayName":"Python 3.10.6 64-bit","uri":{"$mid":1,"fsPath":"c:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310\\python.exe","_sep":1,"external":"file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","path":"/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","scheme":"file"}}}
info 13:42:16.214: Process Execution: > ~\AppData\Local\Programs\Python\Python310\python.exe -m pip list
> ~\AppData\Local\Programs\Python\Python310\python.exe -m pip list
debug 13:42:16.263: Getting env activation commands, Class name = V, completed in 164ms, has a falsy return value, Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:16.265: Getting activated env variables ourselves, Class name = V, completed in 363ms, has a truthy return value, Arg 1: undefined, Arg 2: <Uri:/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe>
debug 13:42:16.266: Got env vars ourselves c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe in 364ms
debug 13:42:17.707: getCondaVersionFromPython, Class name = k, completed in 7523ms, has a truthy return value
debug 13:42:18.028: Full interpreter list for is length: 7, Python 3.10.6 64-bit:Global:c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe, Python 3.9.12 ('base'):Conda:c:\ProgramData\Anaconda3\python.exe, Python 3.8.13 ('trident-spark-kernel'):Conda:c:\Users\longcheng\.conda\envs\trident-spark-kernel\python.exe, Python 3.10.6 64-bit:Global:c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe, Python 3.9.12 ('base'):Conda:c:\ProgramData\Anaconda3\python.exe, Python 3.8.13 ('trident-spark-kernel'):Conda:c:\Users\longcheng\.conda\envs\trident-spark-kernel\python.exe, Python 3.10.6 64-bit:Global:c:\Users\longcheng\AppData\Local\Programs\Python\Python310\python.exe
debug 13:42:18.029: Get Interpreters, Class name = I, completed in 2174ms, has a truthy return value,
debug 13:42:18.535: interpreterPackages getPackageInformation, Class name = r, completed in 2634ms, has a falsy return value, Arg 1: {"interpreter":{"id":"C:\\USERS\\LONGCHENG\\APPDATA\\LOCAL\\PROGRAMS\\PYTHON\\PYTHON310\\PYTHON.EXE","sysPrefix":"C:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310","envType":"Global","envName":"","architecture":3,"sysVersion":"3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]","version":{"raw":"3.10.6","major":3,"minor":10,"patch":6,"build":[],"prerelease":["final","0"]},"companyDisplayName":"PythonCore","displayName":"Python 3.10.6 64-bit","detailedDisplayName":"Python 3.10.6 64-bit","uri":{"$mid":1,"fsPath":"c:\\Users\\longcheng\\AppData\\Local\\Programs\\Python\\Python310\\python.exe","_sep":1,"external":"file:///c%3A/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","path":"/C:/Users/longcheng/AppData/Local/Programs/Python/Python310/python.exe","scheme":"file"}}}
debug 13:42:35.397: Get Active Interpreter, Class name = I (started execution), Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb"
debug 13:42:35.399: Get Active Interpreter, Class name = I (started execution), Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb"
debug 13:42:35.404: Get Active Interpreter, Class name = I, completed in 6ms, has a truthy return value, Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb"
debug 13:42:35.405: Get Active Interpreter, Class name = I, completed in 6ms, has a truthy return value, Arg 1: "/E3DB5011-6CB1-4B25-B318-207CFB504314/cfdb9602-187d-45c0-918e-2719f4ebbbf3/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/vscode-test.ipynb"
debug 13:42:35.585: No controller, hence notebook communications cannot be initialized for editor E3DB5011-6CB1-4B25-B318-207CFB504314\cfdb9602-187d-45c0-918e-2719f4ebbbf3\97b7c3dd-79c3-43b4-8a28-91912d6d5f19\vscode-test.ipynb
info 13:42:36.028: Registering dummy command feature
info 13:42:44.288: Creating server with url : https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
debug 13:42:46.551: Disposing session manager
debug 13:42:46.551: SessionManager - dispose contents manager
debug 13:42:46.551: ShutdownSessionAndConnection - dispose session manager
debug 13:42:46.552: Finished disposing jupyter session manager
info 13:42:46.581: Checking for server existence.
info 13:42:46.581: Checking for server usability.
info 13:42:46.582: Starting notebook server.
info 13:42:46.582: Connecting to server
info 13:42:46.582: Connecting to process server
info 13:42:46.582: Connecting server kernel https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
Connecting to Jupyter server at https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
info 13:42:46.582: Creating server with url : https://e3db50116cb14b25b318207cfb504314.pbidedicated.windows-int.net/webapi/capacities/E3DB5011-6CB1-4B25-B318-207CFB504314/workloads/Notebook/Data/Direct/api/workspaces/cfdb9602-187d-45c0-918e-2719f4ebbbf3/artifacts/97b7c3dd-79c3-43b4-8a28-91912d6d5f19/jupyterApi/versions/1
info 13:42:46.585: Connection complete server
info 13:42:46.590: Server started.
The desktop verbose log as above.
can you provide the remote logs as well
can you provide the remote logs as well
remote verbose logs has updated above~ https://github.com/microsoft/vscode-jupyter/issues/12310#issuecomment-1338775588
and here are some points I think it may help to solve this. https://github.com/microsoft/vscode-jupyter/issues/12310#issuecomment-1338781937
Applies To
What happened?
I'm trying to use jupyter extension to connect custom jupyter server. After the register and addRemoteJupyterServer, it works well on locally VSCode.
But when I migrate to remotely, the connection somehow failed. Then I check the debug message, I find a difference from locally and remotely version.
When I use
kernelService.getKernelSpecifications()
to get my kernel specs, the local version return:but in the same settings, the remote version shows:
It can not extend my custom kernelSpecs settings but only return a standard python3 settings.
I'd like to know why are those two version perfomance different? Are there something needed to change?
VS Code Version
both latest
Jupyter Extension Version
v2022.9.1303220346
Jupyter logs
Coding Language and Runtime Version
No response
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote