You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Notebook support for linting and formatting #21142
Karthik Nadig (@karthiknadig) currently we have "Format Notebook" command in the core and also notebook format on save. If users have black extensions installed, it works as expected. May I ask if this would change how we run formatters from the core?
From what I can tell, it should not. The LSP server registers itself as a server that can handle notebooks. When I have a prototype ready, we can look at how LSP client handles notebook mode registration.
rootsmusic There is no support for notebooks in autopep8. So we can't provide it.
For flake8 or pylint, try the Ruff extension, it has support for linting, and formatting via the ruff library which supports flake8, pylint rules, and uses black rules for formatting.
Activity
rebornix commentedon May 9, 2023
Karthik Nadig (@karthiknadig) currently we have "Format Notebook" command in the core and also notebook format on save. If users have black extensions installed, it works as expected. May I ask if this would change how we run formatters from the core?
karthiknadig commentedon May 9, 2023
From what I can tell, it should not. The LSP server registers itself as a server that can handle notebooks. When I have a prototype ready, we can look at how LSP client handles notebook mode registration.
eleanorjboyd commentedon Dec 16, 2024
Karthik Nadig (@karthiknadig) Should this be closed now that the same feature requests are in the tools extensions?
karthiknadig commentedon Dec 16, 2024
That is correct the requests are in the tools extensions
rootsmusic commentedon Dec 16, 2024
Karthik Nadig (@karthiknadig) I don't see this request in autopep8
(Found for flake8.)
karthiknadig commentedon Dec 16, 2024
rootsmusic There is no support for notebooks in
autopep8. So we can't provide it.For
flake8orpylint, try theRuffextension, it has support for linting, and formatting via therufflibrary which supportsflake8,pylintrules, and usesblackrules for formatting.