mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-29 19:20:28 +01:00
scripts for jupyter notebooks cleanup, bin subdir on path
This commit is contained in:
9
docker/bin/nbdiff_checkpoint
Executable file
9
docker/bin/nbdiff_checkpoint
Executable 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
|
||||
Reference in New Issue
Block a user