question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable linters also on Jupyter notebooks

See original GitHub issue

When we work with *.py files, we can select a Linter (e.g. flake8) and it will support us to be PEP8 complaint. Hence, I’m asking for the same functionality, but in the *.ipynb files.

Is there any chance this feature will be included in future releases?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:10
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
claudiaregiocommented, Sep 3, 2021

Thanks @antoniolanza1996, we will discuss where this lands on our roadmap during our next triage meeting

1reaction
karthiknadigcommented, Sep 8, 2022

@MarthinusBosman The LSP specification 3.17 which adds the Notebook support was published recently. The Python LSP implementation that we depend on pygls (an external project) is working on updating to the LSP 3.17 spec. Once that is done, we can start enabling this in the tools specific extensions, like pylint here https://github.com/microsoft/vscode-pylint/issues/20 and flake8 here https://github.com/microsoft/vscode-flake8/issues/31

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use Pylint or other linters with Jupyter Notebooks?
Yes it is possible; You can install pycodestyle for Jupyter Notebook which is similar to pylint . You can use the below commands...
Read more >
Jupyter Development Tools for Code Linting, Debugging ...
The goal is to ensure that the notebook is behaving as expected and there are no regressions caused by changes to underlying source...
Read more >
Linting Python in Visual Studio Code
To enable linters, open the Command Palette (Ctrl+Shift+P) and select the Python: Select Linter command. The Select Linter command adds "python.linting.
Read more >
(Type hint) linting and formatting does not work in Jupyter ...
Enable mypy in VS Code workspace settings · Set black as linter (install as dev-dependency with pipenv) · Create new blank jupyter notebook...
Read more >
Linters — Using Automation To Support Quality Assured ...
Other, more advanced linters, may also try to identify simple bugs or ... For example, in a Jupyter notebook, a linting error might...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found