Skip to content

Feature request: ipykernel as a project dependency option #694

@hunterhogan

Description

@hunterhogan

For this description, pretend "Quick Create" does not exist.

  1. Select Create Environment.
  2. (Select environment manager.) Assume venv.
  3. Select a Python Environment.
  4. Enter directory name.
  5. Select Install project dependencies.
  6. ms-python.vscode-python-envs magically creates a list of good project dependencies the user may want to install.

The change

When ms-python.vscode-python-envs is searching for dependencies, add the following:

  1. Look in the list of VS Code extensions for ms-toolsai.jupyter.
  2. If found, get the "Select a Python Environment" value.
  3. Figure out if VS Code has access to an ipykernel for that Python version. (I suspect you could do this by calling a function in ms-toolsai.jupyter.)
  4. If VS Code has access to the kernel install, offer the kernel as a project dependency in step 6, above.

ms-toolsai.jupyter

I'm miffed that the folks at ms-toolsai.jupyter don't understand or don't care. See microsoft/vscode-jupyter#16839.

  • A long time ago, installing a Microsoft product typically required the user to babysit the installation and make 806 choices at 467 different points in the installation process. At the moment, ms-toolsai.jupyter is like that, but worse. I may think I have Jupyter installed, so I try to use it (such as by running an interactive window), and VS Code asks me more questions about installation.
  • "The way users address these issues is by having does such a requirements.txt or the like": generalized, "Instead of a small group of people changing this, a large group of people should just learn to adapt." That statement is always wrong. Some similar statements can be right, but 1) this statement is always wrong, and 2) I'm already giving away a valuable education for free.
  • I heard a rumor that Microsoft has software--for internal use only--that will find and correct spelling and grammar errors: the utopian concept is to improve communication.

Not a binary choice

This feature, or variations of this feature, could (should?) be implemented by both ms-toolsai.jupyter and
ms-python.vscode-python-envs.

Quick Create

Handle the kernel dependency the same as the other dependencies.

To paraphrase Blaise Pascal, I wrote a post of appropriate quality because flawless writing requires an unreasonable amount of time.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions