Skip to content

Setting the character truncation limit in the Variable Explorer #470

@DavidMSou

Description

@DavidMSou

Would it be feasible to implement a box where the user can insert the value of the truncation limit (X) in the variable explorer?

spyder-kernels/spyder_kernels/utils/nsview.py

Truncate display at X chars to avoid freezing Spyder

because of large displays

if len(display) > X:
if is_binary_string(display):
ellipses = b' ...'
else:
ellipses = u' ...'
display = display[:70].rstrip() + ellipses

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