Issue
Is there an easy way to check that iPython notebook code, while it's being written, is compliant with PEP8?
Solution
In case this helps anyone, I'm using:
conttest "jupyter nbconvert notebook.ipynb --stdout --to script | flake8 - --ignore=W391"
conttest
reruns when saving changes to the notebookflake8 -
tells flake8 to take input from stdin--ignore=W391
- this is because the output ofjupyter nbconvert
seems to always have a "blank line at end of file", so I don't want flake8 to complain about that.
I'm having a problem with markdown cells (whose line lengths may legitimately be quite long, though): ignore markdown cells in `jupyter nbconvert` with `--to script`.
Answered By - DavidC
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.