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 notebook
flake8 -
tells flake8 to take input from stdin
--ignore=W391
- this is because the output of jupyter 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`.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…