Skip to content

Expand width of docstring pop up to accomodate commonly used docstring widths #9085

@joelostblom

Description

@joelostblom

The docstring pop up (Shift + Tab) currently wraps lines that are over 75 characters. Many libraries have docstrings that are just a bit longer than this. I believe the common longer lengths include 77, 80, and 82, and I wonder if you would consider changing the default width to wrap at 83 characters instead to avoid line spillover which makes the doscstring hard to read, see screenshots below

Current behavior:
image

Suggested behavior:
image

I did this change in the plotly source earlier and just suggested it to Altair, but I figured it would be easier if JupyterLab (and maybe IPython) could increase the width just slightly instead of me trying to fix one library at a time. Docstrings following the pep8 72 char recommendation would still look good, just have a bit extra space on the side.

I can make this change if someone can point me to where in the code I need to change something, but I am also happy for someone else to do it since I imagine it is just tweaking a number for the width of the popup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementstatus:resolved-lockedClosed issues are locked after 30 days inactivity. Please open a new issue for related discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions