Skip to content

Docs: Add comprehensive Jupyter Notebooks documentation page#4985

Closed
veeceey wants to merge 4 commits intopsf:mainfrom
veeceey:docs/issue-4967-jupyter-documentation
Closed

Docs: Add comprehensive Jupyter Notebooks documentation page#4985
veeceey wants to merge 4 commits intopsf:mainfrom
veeceey:docs/issue-4967-jupyter-documentation

Conversation

@veeceey
Copy link
Contributor

@veeceey veeceey commented Feb 8, 2026

Summary

This PR adds a dedicated documentation page for Jupyter Notebooks usage, consolidating all Jupyter-related information that was previously scattered across multiple documentation files.

Fixes #4967
Closes #4971
Closes #5009

Changes

  • New file: docs/usage_and_configuration/jupyter_notebooks.md - A comprehensive guide covering:

    • Installation instructions (pip and pipx)
    • Basic usage and examples
    • Command-line options (--ipynb, --python-cell-magics)
    • Configuration via pyproject.toml
    • Detailed explanation of what cells get formatted and which are skipped
    • Integration with pre-commit hooks and editors
    • Troubleshooting section
  • Updated files:

    • docs/getting_started.md - Replaced inline Jupyter installation instructions with a link to the new dedicated page
    • docs/usage_and_configuration/index.md - Added the new Jupyter page to the table of contents
    • docs/faq.md - Added a reference to the comprehensive Jupyter documentation

Motivation

As noted in issue #4967, Black's Jupyter support documentation was scattered across multiple pages. Users looking for information about using Black with Jupyter Notebooks had to search through:

  • Installation page for installation steps
  • FAQ for troubleshooting
  • The basics page for command-line options

This PR creates a single, comprehensive resource that covers all aspects of Jupyter Notebook formatting with Black, making it much easier for users to find the information they need.

Testing

  • Reviewed all content for accuracy against Black's current Jupyter support
  • Ensured all cross-references use correct Sphinx syntax
  • Verified that the new page is properly integrated into the documentation structure

@veeceey
Copy link
Contributor Author

veeceey commented Feb 19, 2026

Friendly ping - any chance someone could take a look at this when they get a chance? Happy to make any changes if needed.

veeceey and others added 3 commits February 23, 2026 23:38
Consolidates all Jupyter-related information into a dedicated documentation
page that covers installation, usage, configuration, and troubleshooting.
This addresses issue psf#4967 by providing a central location for all Jupyter
information rather than having it scattered across multiple docs.

Changes:
- Create new jupyter_notebooks.md with comprehensive coverage:
  - Installation instructions with pip and pipx
  - Basic usage and command-line options
  - Configuration via pyproject.toml
  - Detailed explanation of what gets formatted
  - Pre-commit and editor integration
  - Troubleshooting section with examples
- Update getting_started.md to reference the new page instead of inline instructions
- Update usage_and_configuration/index.md to include the new page in the table of contents
- Update faq.md to link to the new comprehensive documentation

Fixes psf#4967
@veeceey veeceey force-pushed the docs/issue-4967-jupyter-documentation branch from acc6ff4 to b667257 Compare February 24, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Better documentation for Jupyter usage

2 participants