Skip to content

can nbdiff ignore indentation and whitespaces? #791

@gnahz04

Description

@gnahz04

From https://nbdime.readthedocs.io/en/latest/config.html it seems that there are no options to achieve the equivalent of these diff options, after the notebook code is auto-indented in an IDE:

       -E, --ignore-tab-expansion
              ignore changes due to tab expansion

       -Z, --ignore-trailing-space
              ignore white space at line end

       -b, --ignore-space-change
              ignore changes in the amount of white space

       -w, --ignore-all-space
              ignore all white space

       -B, --ignore-blank-lines
              ignore changes where lines are all blank


       -d, --minimal
              try hard to find a smaller set of changes

Could these be added?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions