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

Pip Install Packages in Jupyter extension when using unsupported shells on windows #8359

Closed
2 of 5 tasks
DonJayamanne opened this issue Nov 24, 2021 · 1 comment
Closed
2 of 5 tasks

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Nov 24, 2021

Refs: #8325

Complexity: 3

Authors: @DonJayamanne

Create Issue


  • Install Python
  • Install Python & Jupyter Extension
  • Ensure you have a shell other than Command Prompt & Powershell (e.g. WSL or GitBash)
  • Locate Python executable
    • Ensure you are using a globally installed version of Python.
    • Do not use Conda, Virtual env, Pyenv or Poetry or the like (if you don't know what that is, then you're doing the right thing)
  • Ensure ipykernel is not installed in the above Python environment
    • Open a command prompt and run the following command:
    • python -m pip uninstall ipykernel -y
  • Go into VSCode
  • Change the shell to WSL or Gitbash
  • Create a new Jupyter notebook (file extension .ipynb)
  • Ensure you select the Global Python enviornment identified earlier
    • Use the kernel picker (top right of the Notebook UI, or the command Notebook: Select Notebook Kernel) to pick the right python environment.
  • Add a cell with the code print("hello") and hit run
    • Verify you are prompted to install IPyKernel
  • Click Install in the prompt to install ipykernel
    • Verify you get a progress message indicating the fact that ipykernel is being installed
  • Verify you can run cells & get output (i.e. verify ipykernel was installed successfully)
@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug testplan-item and removed bug Issue identified by VS Code Team member as probable bug labels Nov 24, 2021
@ghost ghost assigned joaomoreno and rzhao271 Nov 30, 2021
@joaomoreno
Copy link
Member

Fantastic test plan item, everything was perfectly detailed! 👏

Works as expected.

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

4 participants