Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the character truncation limit in the Variable Explorer #470

Open
DavidMSou opened this issue Oct 9, 2023 · 0 comments
Open

Setting the character truncation limit in the Variable Explorer #470

DavidMSou opened this issue Oct 9, 2023 · 0 comments

Comments

@DavidMSou
Copy link

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

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

No branches or pull requests

1 participant