| Hosted by CoCalc | Download
1
#!/bin/bash
2
3
# count the lines of code in an .ipynb file
4
5
jupyter nbconvert --to python --stdout $1 |\
6
sed -e 's/^[ \t]*//' -e '/^$/d' |\
7
grep -v '#' |\
8
wc -l
9