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

Hang on first run. #14903

Closed
eromoe opened this issue Dec 12, 2023 · 10 comments
Closed

Hang on first run. #14903

eromoe opened this issue Dec 12, 2023 · 10 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@eromoe
Copy link

eromoe commented Dec 12, 2023

Environment data

  • VS Code version: latest
  • Jupyter Extension version (available under the Extensions sidebar): latest
  • Python Extension version (available under the Extensions sidebar): latest
  • OS (Windows | Mac | Linux distro) and version: win10
  • Python and/or Anaconda version: 3.10
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
  • Jupyter server running: Local

Expected behaviour

Actual behaviour

  1. first time, login windows system.
  2. first time, open a project by vscode
  3. run all a .ipynb
  4. hang at first cell
  5. click interupt , no reaction.
  6. ctrl+shift+p -> Python: clear cache and reload window
  7. click run all again, now it is fine.
  8. close vscode, and open this project again, run all is fine too.

Only first time and same project . Different project first open still get hang.

gif:
vscode_jupyter

Steps to reproduce:

It is lasting a long time.
Don't know how to reproduce, doesn't happen on my macbook.

@eromoe eromoe added the bug Issue identified by VS Code Team member as probable bug label Dec 12, 2023
@DonJayamanne
Copy link
Contributor

VS Code version: latest
Jupyter Extension version (available under the Extensions sidebar): latest
Python Extension version (available under the Extensions sidebar): latest

Please could you provide the version informations

Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

@DonJayamanne DonJayamanne assigned DonJayamanne and unassigned amunger Dec 12, 2023
@DonJayamanne DonJayamanne added info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel) labels Dec 12, 2023
@DonJayamanne
Copy link
Contributor

Don't know how to reproduce, doesn't happen on my macbook.

Since you can repro on windows, please try windows and share the logs,
thanks

@eromoe
Copy link
Author

eromoe commented Dec 12, 2023

VS Code version: latest
Jupyter Extension version (available under the Extensions sidebar): latest
Python Extension version (available under the Extensions sidebar): latest

Please could you provide the version informations

Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

all package updated today, no matter version , it happened several months ago.
And could you describe where to get the logs more deteailed , better contain gif / screen shot, avoid wasting time , as you see I posted a gif shows logs at OUTPUT -> python didn't change , logs at JUPYTER is nothing.

@eromoe
Copy link
Author

eromoe commented Dec 13, 2023

Today I find there is a drowdown list on OUTPUT tab , the logging is hang too :

No more output after clicking run all , 10:14:28.142 [info] Handle Execution of Cells generated at clicking time.

09:47:36.809 [info] Process Execution: ~\anaconda3\envs\quant\python -m pip list
09:47:38.960 [info] End refreshing Kernel Picker (1702432052605)
10:14:28.142 [info] Handle Execution of Cells 1,2,3,4,5,6,7,8,11,12,13,14,15,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,36,37,39,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,69,70,71,72,73 for e:\Workspace\github_me\pipe_group_analysis\tests\urt.ipynb

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Dec 13, 2023

Looks like you have not enabled verbose logging, please do enable that and share the logs when you run into this.
Also, please can you try installing VS Code insiders and the latest pre-release version of the Jupyter extension.

Please could you enable logging as follows:

  • Open settings & go into Jupyter->Logging
  • Change the value to verbose
  • Reload VS Code,
  • Attempt to repro the issue & then copy the output from the Jupyter output panel.

@eromoe
Copy link
Author

eromoe commented Dec 13, 2023

That logs is after verbose enbaled. Or you have to see screen recording to confirm ??

@DonJayamanne
Copy link
Contributor

@eromoe
Please see here for a screenshot of how you can enable verbose logging (in you settings)
Screenshot 2024-01-28 at 23 14 57

@eromoe
Copy link
Author

eromoe commented Jan 28, 2024

Definite, hang without logs.

@DonJayamanne
Copy link
Contributor

Duplicate of microsoft/vscode#207767

@DonJayamanne DonJayamanne marked this as a duplicate of microsoft/vscode#207767 Apr 2, 2024
@DonJayamanne
Copy link
Contributor

Fixed as part of Addressed as part of microsoft/vscode#209787

@DonJayamanne DonJayamanne added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 11, 2024
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 *duplicate Issue identified as a duplicate of another issue(s) info-needed Issue requires more information from poster notebook-kernel Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

3 participants