Skip to content

Ruff failing to start when used directly in notebook #675

Open
@AWH1122

Description

@AWH1122

When ruff is being used exclusively in a notebook it fails to start. Here is the log output:

2025-01-26 19:54:52.014 [info] Name: Ruff
2025-01-26 19:54:52.014 [info] Module: ruff
2025-01-26 19:54:52.014 [info] Python extension loading
2025-01-26 19:54:52.014 [info] Waiting for interpreter from python extension.
2025-01-26 19:54:52.088 [info] Python extension loaded
2025-01-26 19:54:52.111 [error] Python interpreter missing:
[Option 1] Select Python interpreter using the ms-python.python.
[Option 2] Set an interpreter using "ruff.interpreter" setting.
Please use Python 3.7 or greater.

If I create a .py file, select and interpreter, then restart the language server it works.

Steps to Reproduce:

  1. Open jupyter notebook
  2. Try to format document and notice ruff is not working

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions