aitech-eks-pub/convert_ipynb_to_md.sh

8 lines
210 B
Bash
Raw Normal View History

2021-09-27 13:29:40 +02:00
set -ex
FILEIPYNB=$1
jupyter nbconvert --to script $1
FILEPY=$(echo $FILEIPYNB | sed 's/.ipynb$/.py/')
FILEMD=$(echo $FILEIPYNB | sed 's/.ipynb$/.md/')
python convert_python_to_markdown.py "$FILEPY" "$FILEMD"