.gitignore for Jupyter Notebooks
5 ignore rules for Jupyter Notebooks, ready to copy into your repository.
Interactive computing environment
The complete .gitignore for Jupyter Notebooks
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-03-02 07:14:40 UTC
# Technologies: Jupyter Notebooks
### Jupyter Notebooks ###
# Jupyter notebook checkpoints
.ipynb_checkpoints
*/.ipynb_checkpoints/*
# IPython default profile
profile_default/
# IPython configuration
ipython_config.py
.virtual_documents/
What these Jupyter Notebooks rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
General
| Pattern | What it ignores |
|---|---|
.ipynb_checkpoints |
Jupyter notebook checkpoints |
*/.ipynb_checkpoints/* |
General |
IPython
| Pattern | What it ignores |
|---|---|
profile_default/ |
IPython default profile |
ipython_config.py |
IPython configuration |
.virtual_documents/ |
Jupyter lab virtual documents https://jupyterlab-lsp.readthedocs.io/en/2.x/Configuring.html#virtual_documents_dir |
How to use this .gitignore for Jupyter Notebooks
- Copy the Jupyter Notebooks rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.