question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement request: add ability to hide private attributes from Variable Explorer Object view

See original GitHub issue

Issue Report Checklist

Problem Description

When double clicking an object in the Variable Explorer to open the Object Viewer, one can optionally turn on and off Show Special and Show Callable by using buttons in the Object View window. This request is to add a third option: “Show private”. Any attrs, properties, and methods with a leading underscore would be hidden when this new option is toggled off.

This would be an improvement to reduce visual clutter for viewing classes that have many private attrs.

Versions

  • Spyder version: 4.2.0

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jbiz25commented, Nov 13, 2020

HI guys, thanks very much for the consideration!

0reactions
CAM-Gerlachcommented, Apr 26, 2021

@jbiz25 I’m not sure how likely this is to get implemented anytime soon; I imagine that instead of special-casing _ we could simply sort all symbols after letters not unsure how generally applicable that change is. For now, is it too much of an inconvenience to simply sort Name by ascending instead of descending, so that they get sorted at the end?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Variable Explorer in Jupyter Notebook - python - Stack Overflow
Here is a notebook on how to make your own Variable Inspector. ... For this example, hide these names, just to avoid polluting...
Read more >
Variable Explorer — Spyder 5 documentation
The Variable Explorer allows you to interactively browse and manage the objects generated running your code. Spyder Variable Explorer execution with a variable ......
Read more >
Private properties in JavaScript - Curiosity driven
Unprotected scenario. Person instances created using the function below will have properties stored directly in them. · Hiding properties with closures. To ...
Read more >
Inspect XAML properties while debugging - Visual Studio ...
Let's get started with a very simple WPF application that has a list view and a button. Every time you click the button,...
Read more >
Python Tutorial: Private attributes and methods - 2020
Suppose we have the following class which has private attributes (__alias): ... through an instance variable, but not for the private attribute alias....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found