Skip to content

create a .gitignore file within any .ipynb_checkpoints folder created #1593

@itcarroll

Description

@itcarroll

Problem

  • I'm always frustrated when .ipynb_checkpoints show up in a git repository because they haven't been included in a .gitignore.
  • I would like it if all .ipynb_checkpoints were ignored by git without users having to do anything.

Proposed Solution

  • Have Jupyter create .ipynb_checkpoints/.gitignore whenever it creates an .ipynb_checkpoints folder.
  • The content of the .gitignore file should be *.

Additional Context

Many tools that create folders in a project do this; for example, uv venv creates a .gitignore within the .venv folder it creates.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions