microsoft / vscode-jupyter-hub

Jupyter Hub Support in VS Code
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter-hub
MIT License
8 stars 6 forks source link

Popup is always displayed on startup #43

Closed mtreca closed 1 day ago

mtreca commented 7 months ago

I notice that the JupyterHub extension is trying to connect to remote severs whenever I open VSCodium, even though there is no Jupyter notebook currently opened. Would it be possible to disable, or at least an option to disable, auto-connect on extension startup to reduce noise?

Environment data

DonJayamanne commented 7 months ago

Please could you enable logging as follows:

DonJayamanne commented 7 months ago

even though there is no Jupyter notebook currently opened.

that’s very weird, I’m assuming you have a python file opened

mtreca commented 7 months ago

Thanks for the quick reply!

No files are opened at all, the popup appears on VSCodium startup even before selecting a project.

Here are the logs:

10:20:42.972 [debug] 
10:20:43.419 [debug] 
10:20:46.542 [error] Error sending request to REDACTED-URL Canceled: Canceled
    > at f.value (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64013:14)
10:20:46.543 [debug] 
10:20:46.543 [error] Error sending request to REDACTED-URL Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.543 [error] Failed to get user info for user Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.544 [debug] 
10:20:46.544 [error] Error sending request to REDACTED-URL Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.545 [debug] Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.546 [error] Error sending request to REDACTED-URL Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.547 [error] Failed to generate token, trying old way Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.547 [error] Error sending request to REDACTED-URL Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.547 [error] Failed to generate token, trying old way Canceled: Canceled
    > at raceCancellationError (/Users/maximet/.vscode-oss/extensions/ms-toolsai.jupyter-hub-2023.10.1003012305/dist/extension.node.js:64005:11)
10:20:46.549 [debug] 
Screenshot 2023-12-14 at 14 31 28
DonJayamanne commented 6 months ago

No files are opened at all, the popup appears on VSCodium startup even before selecting a project.

Sorry for not getting back sooner. This should not happen, the Jupyter Hub extension will only activate when a notebook or Interactive window is open, not otherwise. Here's the logic for activation of this extension

    "activationEvents": [
        "onNotebook:jupyter-notebook",
        "onNotebook:interactive"
    ],

I'm guessing this is a bug in VS Codium, or there's some other extension tahts in directly causing the Jupyter hub extension to activate. Please check whether the Jupyter extension is getting activated

mtreca commented 6 months ago

Thanks also for replying to this. So this is a two part problem:

Screenshot 2024-01-30 at 15 36 14
DonJayamanne commented 1 day ago

Duplicate of https://github.com/microsoft/vscode-jupyter-hub/issues/47