mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-11-19 12:32:40 +01:00
12 lines
224 B
Bash
12 lines
224 B
Bash
|
#!/bin/bash
|
||
|
# $ nb_to_org.sh notebook.ipynb
|
||
|
# produces the org-mode file notebook.org
|
||
|
|
||
|
set -e
|
||
|
|
||
|
nb=$(basename $1 .ipynb)
|
||
|
jupyter nbconvert --to markdown ${nb}.ipynb --output ${nb}.md
|
||
|
pandoc ${nb}.md -o ${nb}.org
|
||
|
rm ${nb}.md
|
||
|
|