mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-14 12:14:36 +01:00
Nbdiff --ignore-details skils autoscroll, collapsed, deletable, editable, toc (pull request on the way). Enabling empty pass, no git pager, ignoring gitdiff nbdiff details.
13 lines
319 B
Bash
13 lines
319 B
Bash
alias ll="ls -alF"
|
|
|
|
nbd() {
|
|
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
|
|
}
|