astoff / code-cells.el

Emacs utilities for code split into cells, including Jupyter notebooks
GNU General Public License v3.0
190 stars 12 forks source link

Suggestions on working with linters? #7

Closed Yevgnen closed 3 years ago

Yevgnen commented 3 years ago

Thanks for the package. I've switched from jupyter in Org mode to code-cells for data analysis. The only issue is, the linters (pylint, mypy, etc. ) do not work with the raw .ipynb files, and of course they should not. The error messages always show strange messages and wrong position information like

Screen Shot 2021-11-01 at 10 59 43 AM Screen Shot 2021-11-01 at 11 00 30 AM

Can this be fixed or do you have any suggestion on this? Thanks.

astoff commented 3 years ago

Yes, this is annoying. Same problem if you try to grep a collection of notebooks.

If I run the linters through a language server, then it works. Otherwise, you can save and edit the .py version of these notebooks. I guess I have no better suggestion here.

Yevgnen commented 3 years ago

I haven't run linters through language servers before, thanks for your advices!