Skip to content

Allow users to specify installation location when creating a new Python environment for Jupyter #24907

Open
@CinrayZ

Description

@CinrayZ

🚀 Feature Request

Currently, when a user selects "Create Python Environment" inside the Jupyter kernel selection UI, they can only create the environment in the workspace root directory. However, sometimes users want to create the environment in a custom directory.

💡 Proposed Solution

  • After selecting "Create Python Environment", allow users to specify a directory before proceeding with venv or conda.
  • The default can still be the workspace root, but users should have the flexibility to change it.

🤔 Why is this needed?

  • Some projects require virtual environments in custom locations.
  • Prevent workspace clutter.
  • Aligns with flexibility offered in the VS Code Python extension.

📌 Steps to Reproduce

  1. Open a Jupyter notebook in VS Code.
  2. Click "Select Kernel" > "Select Another Kernel".

Image

  1. Choose "Python Environment" > "Create Python Environment".

Image

Image

  1. Currently, VS Code forces the environment to be created in the workspace root.

Image

🔄

  • Manually creating a venv/conda environment and selecting it later (not user-friendly and currently it can not be automatically detected).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions