Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipynb files no longer run #8947

Closed
Abhishek2271 opened this issue Feb 6, 2022 · 10 comments
Closed

ipynb files no longer run #8947

Abhishek2271 opened this issue Feb 6, 2022 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@Abhishek2271
Copy link

Abhishek2271 commented Feb 6, 2022

Does this issue occur when all extensions are disabled?: The issue is with Jupyter extension after the update. Reinstalling the said extension does not help.

Version: 1.64.0 (user setup)
Commit: 5554b12acf27056905806867f251c859323ff7e9
Date: 2022-02-03T04:22:20.678Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19041

Steps to Reproduce:

  1. The code gets stuck on "Connecting to Kernel".
    image

This happened after the last update. Before this code was running fine. Also, where can I disable the updates. Is it necessary that the updates are automatic?

@bpasero bpasero assigned roblourens and unassigned bpasero Feb 7, 2022
@roblourens roblourens transferred this issue from microsoft/vscode Feb 7, 2022
@DonJayamanne
Copy link
Contributor

Thanks for filing this issue,

Also, where can I disable the updates.

Yes, this is possible, use the command Disable Auto Update for All Extensions
Unfortunately it cannot be done per extension.

Please could you provide the following information so we can determine whats not working:

  • the output from the Jupyter output panel
  • Version of Python (and type of the environment, is it anaconda, virtual environment)

@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) labels Feb 7, 2022
@Abhishek2271
Copy link
Author

Abhishek2271 commented Feb 7, 2022

Hi,

Thank you for the reply. Here are the details:

Version of Python (and type of the environment, is it anaconda, virtual environment)

The Python version is 3.6.5. It is locally installed.

the output from the Jupyter output panel

I think the vs instance is not able to create a Jupyter session as the loading bar appears at the bottom-right of the screen. It says "waiting for the Jupyter session to be idle" and keeps on waiting. Below is a screenshot with the full message.

It is a bit weird because I have had the same issue when I updated vs code a few months before, but at the time, the issue was fixed by just closing all .ipynb sessions and restarting the vs. However, this time that did not work.

image

@DonJayamanne
Copy link
Contributor

Please could you provide the output from the Jupyter output panel

@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Feb 8, 2022
@Abhishek2271
Copy link
Author

I am not sure what you mean by the output panel.

@YARARMAN
Copy link

YARARMAN commented Feb 8, 2022

Step One: Extensions > Settings (Top Right 3 Dots Icon) > Auto Update Extensions > None

Step Two: Extensions > Jupyter > Down Arrow to Tight of Uninstall > Install Another Version... > v2022.1.1001614873 from List

@DonJayamanne
Copy link
Contributor

I am not sure what you mean by the output panel.

outputpanel

@Abhishek2271
Copy link
Author

Step One: Extensions > Settings (Top Right 3 Dots Icon) > Auto Update Extensions > None

Step Two: Extensions > Jupyter > Down Arrow to Tight of Uninstall > Install Another Version... > v2022.1.1001614873 from List

This worked thank you. The extension was updated some days ago it seems.

@Abhishek2271
Copy link
Author

I am not sure what you mean by the output panel.

outputpanel

image

Here is the output panel when the extension was not working.

@DonJayamanne
Copy link
Contributor

Thanks for filing this issue, please could you try re-installing ipykernel & ipython as follows:
/usr/local/bin/python3 -m pip install ipykernel ipython -U --fore-reinstall

Looks like some of the dependencies are incompatible (more information here https://stackoverflow.com/questions/65843310/completion-in-ipython-jupyter-does-now-work-unexpected-keyword-argument-colu).

@DonJayamanne
Copy link
Contributor

Closing as this should now be fixed.
Please re-open this issue if it hasn't been resolved.
Duplicate of #9014

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

7 participants
@roblourens @bpasero @DonJayamanne @YARARMAN @greazer @Abhishek2271 and others