scripts for jupyter notebooks cleanup, bin subdir on path

This commit is contained in:
ziembla
2017-12-09 20:17:56 +01:00
parent ddb9784176
commit 6e4004f16c
6 changed files with 184 additions and 17 deletions

9
docker/bin/nbdiff_checkpoint Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
DIRNAME=$(dirname "$1")
BASENAME=$(basename "$1" .ipynb)
WORKING_COPY=$DIRNAME/$BASENAME.ipynb
CHECKPOINT_COPY=$DIRNAME/.ipynb_checkpoints/$BASENAME-checkpoint.ipynb
echo "How change $CHECKPOINT_COPY into $WORKING_COPY"
nbdiff "$CHECKPOINT_COPY" "$WORKING_COPY" --ignore-details