Skip to content

Provide an option to start uv on Windows without a console window #6801

@piepero

Description

@piepero

I am using the Windows 11 Task Scheduler to periodically run a Python script using the uv --quiet run command.

The script has the .pyw file extension, and uv correctly uses pythonw.exe to run the script without a console window.

Unfortunately, uv.exe itself still opens an empty console window. It stays open until it has parsed the inline metadata, checked the dependencies and started pythonw.exe. The window is both distracting and steals the focus.

It would be great, if there was an additional flag (e.g. --hidden, --no-console) to suppress the creation of the console window.
Alternatively, it may be possible to add this functionality to the --quiet flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvement to existing functionalitywindowsSpecific to the Windows platform

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions