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

Display place holder kernel for Python when Python extension Or Python runtime isn't installed #6821

Closed
2 tasks done
DonJayamanne opened this issue Jul 26, 2021 · 1 comment

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Jul 26, 2021

Refs: #5864

Complexity: 3

Create Issue


If users do not have Python extension installed, and they open a Jupyter notebook, they do not know what they need to do to be able to run a Notebook with Python.
Solution:

  • If users do not have Python extension installed, we list a kernel named Python and when this kernel is used to run a notebook cell, they'll be prompted to install the Python extension.
  • If users have the Python Extension installed but do not have any Python runtime (environment) on their machine, we list a kernel named Python and when this kernel is used to run a notebook cell, they'll be prompted to install the Python runtime.

Testing

Test 1 (with Python runtime)

  • Ensure you do not have Python extension installed
  • Ensure you have Python installed.
  • Install VS Code Insiders
  • Open a Jupyter Notebook
  • Verify you do not have any Python kernels
    • Next select the kernel Python
    • Now attempt to run a cell.
    • Verify you are prompted to install Python extension
    • Once installed, verify the list of Python interpreters are now displayed in the kernel picker (without having to re-load VS Code)

Test 2 (without Python runtime)

  • Ensure you do not have Python extension installed
  • Ensure you do not have Python installed.
  • Install VS Code Insiders
  • Open a Jupyter Notebook
  • Verify you do not have any Python kernels
    • Next select the kernel Python
    • Now attempt to run a cell.
    • Verify you are prompted to install Python extension
  • Re-load VS Code, & open the same notebook.
  • Verify you do not have any Python kernels
    • Next select the kernel Python
    • Now attempt to run a cell.
    • Verify you are prompted to install Python runtime
@DonJayamanne DonJayamanne added the bug Issue identified by VS Code Team member as probable bug label Jul 26, 2021
@DonJayamanne DonJayamanne added testplan-item and removed bug Issue identified by VS Code Team member as probable bug needs-triage labels Jul 26, 2021
@DonJayamanne DonJayamanne added this to the July 2021 Release milestone Jul 26, 2021
@alexr00
Copy link
Member

alexr00 commented Jul 27, 2021

Tested on Windows.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants