Variable names are displayed in the Outline pane
See original GitHub issueDescription
What steps will reproduce the problem?
In the 4.1.5 version, only the function name was displayed in the outline pane as follows:
In the master version, the variable names are also displayed in the outline pane as follows:
The example code is as follows:
# -*- coding: utf-8 -*-
"""Test outline."""
# Third party imports
from matplotlib.pyplot import figure
from numpy import linspace
from numpy.core.umath import log2
def nextpow2(val):
r"""."""
val_abs = abs(val)
exponent = 1
while exponent < val_abs:
exponent *= 2
exponent = log2(exponent)
return exponent
if __name__ == '__main__':
data = linspace(1, 2, 3)
fig = figure()
ax1 = fig.add_subplot(1, 1, 1)
ax1.plot(data)
data = linspace(1, 3, 3)
fig = figure()
ax1 = fig.add_subplot(1, 1, 1)
ax1.plot(data)
If it’s working properly, could you add a functionality to hide variables? Thank you for reading it.
Versions
- Spyder version: 4.2.0.dev0 af7d224ba
- Python version: 3.8.5
- Qt version: 5.12.5
- PyQt5 version: 5.12.3
- Operating System: Linux 5.4.0-48-generic
Dependencies
# Mandatory:
atomicwrites >=1.2.0 : 1.4.0 (OK)
chardet >=2.0.0 : 3.0.4 (OK)
cloudpickle >=0.5.0 : 1.6.0 (OK)
diff_match_patch >=20181111 : 20200713 (OK)
intervaltree : None (OK)
IPython >=4.0 : 7.18.1 (OK)
jedi =0.17.1 : 0.17.1 (OK)
keyring : None (OK)
nbconvert >=4.0 : 6.0.6 (OK)
numpydoc >=0.6.0 : 1.1.0 (OK)
parso =0.7.0 : 0.7.0 (OK)
pexpect >=4.4.0 : 4.8.0 (OK)
pickleshare >=0.4 : 0.7.5 (OK)
psutil >=5.3 : 5.7.2 (OK)
pygments >=2.0 : 2.7.1 (OK)
pylint >=1.0 : 2.6.0 (OK)
pyls >=0.35.0;<1.0.0 : v4.1.4+326.gaf7d224ba (OK)
qdarkstyle >=2.8 : 2.8.1 (OK)
qtawesome >=0.5.7 : 0.7.2 (OK)
qtconsole >=4.7.7 : 4.7.7 (OK)
qtpy >=1.5.0 : 1.9.0 (OK)
rtree >=0.8.3 : 0.9.4 (OK)
sphinx >=0.6.6 : 3.2.1 (OK)
spyder_kernels >=1.9.4;<1.10.0 : 1.10.0.dev0 (OK)
watchdog : None (OK)
xdg >=0.26 : 0.26 (OK)
zmq >=17 : 19.0.2 (OK)
# Optional:
cython >=0.21 : 0.29.21 (OK)
matplotlib >=2.0.0 : 3.3.1 (OK)
numpy >=1.7 : 1.19.1 (OK)
pandas >=1.1.1 : 1.1.1 (OK)
scipy >=0.17.0 : 1.5.2 (OK)
sympy >=0.7.3 : 1.6.2 (OK)
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Output options - IBM
Outline labeling. Controls display of variable names, variable labels, data values, and value labels in the outline pane of the Viewer.
Read more >Unable To See Variable Names In Environment Pane in ...
I am wondering if it is possible to change the "column" width of the variable name "column" as to make the variable names...
Read more >SPSS Variable Names vs Labels - YouTube
In this video I show how to display variable names instead of labels in SPSS.
Read more >Outline (group) data in a worksheet - Microsoft Support
Use an outline to group data and quickly display summary rows or columns, or to reveal the detail data for each group.
Read more >Slide Title as Variable - Articulate Storyline Discussions
On each slide, add a trigger to adjust the value of the SlideTitle variable - set the value to the name of the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think variable names is enough.
I think we can add an option to hid the variable-specific types, since class attributes are identified as
fields
rather than variables. We can include this as part of the upcoming PR to restore cells and block comments