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

can't find poetry python kernel for jupyter notebooks #22600

Closed
hros opened this issue Nov 30, 2023 · 4 comments
Closed

can't find poetry python kernel for jupyter notebooks #22600

hros opened this issue Nov 30, 2023 · 4 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team

Comments

@hros
Copy link

hros commented Nov 30, 2023

Type: Bug

Behaviour

Expected vs. Actual

starting vs code in a "poetry shell" environment does not find the virtual env python kernel for running notebooks

tried various online "remedies" but none worked for me

Steps to reproduce:

  1. enter the poetry project dir
  2. poetry shell
  3. code .
  4. open a jupyter notebook
  5. kernel not selected automatically and not available from Notebook: Select notebook kernel command

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.6
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
  • Value of the python.languageServer setting: Default
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings


languageServer: "Pylance"

Extension version: 2023.20.0
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.22635
Modes:
Remote OS version: Linux x64 5.15.133.1-microsoft-standard-WSL2

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
py29gd2263:30899288
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
dsvsc013:30795093
dsvsc014:30804076
dsvsc015:30845448
pythontestfixt:30902429
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
h48ei257:30885898
pythontbext0:30879054
accentitlementsc:30887149
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
aa_t_chat:30882232

@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Nov 30, 2023
@karthiknadig karthiknadig transferred this issue from microsoft/vscode-python Nov 30, 2023
@rebornix rebornix added the under-discussion Issue is under discussion for relevance, priority, approach label Dec 6, 2023
@rebornix rebornix assigned DonJayamanne and unassigned rebornix Dec 6, 2023
@DonJayamanne
Copy link

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
Copy link

Does the poetry env shops up in the last of Python enrolments when you use the command ‘Python: Select interpreter’?

@hros
Copy link
Author

hros commented Dec 6, 2023

Does the poetry env show up in the last of Python enrolments when you use the command ‘Python: Select interpreter’?

no

@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-jupyter Dec 6, 2023
@DonJayamanne DonJayamanne removed their assignment Dec 6, 2023
@brettcannon brettcannon added area-environments Features relating to handling interpreter environments and removed under-discussion Issue is under discussion for relevance, priority, approach labels Dec 7, 2023
@karrtikr
Copy link

This issue was recently fixed, please open a new issue using Python: Report Issue command if you still run into this. Make sure to provide the following info if you still see it:

  • Run Developer: Set log level command
  • Select Trace
  • Run Developer: Reload Window command
  • Provide the output:
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

@karrtikr karrtikr closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2024
@github-actions github-actions bot added the info-needed Issue requires more information from poster label Mar 28, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments info-needed Issue requires more information from poster triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

5 participants