Bug: The variable explorer doesn't show the shape of np arrays in the "count" column
See original GitHub issueBug: The variable explorer doesn’t show the shape of np arrays in the “count” column
Steps to cause the bug to occur
- Create two numpy arrays:
import numpy as np
x = np.array([1,2,3])
y = np.array([[1,2,3],[1,2,3]])
- Look at the variable explorer in the interactive window
Actual behavior
The “count” column shows only the number of rows I assume.
Expected behavior
I saw in a YouTube video that the “count” column should actually show the shape (x.shape
)
I use a lot of linear algebra calculations with multi-dimensional arrays, so for me it is quite important to see the shape of an array at a glance. Workaround for me is using the iPython REPL to get the shape, which is clunky.
Your Jupyter and/or Python environment
Please provide as much info as you readily know
- Jupyter server running: Local
- Extension version: 2020.3.69010
- VS Code version: 1.43.1
- Setting python.jediEnabled: false
- Python and/or Anaconda version: 3.7.7
- OS: Windows
- Virtual environment: N/A
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
The variable explorer doesn't show the shape of np arrays ...
Bug : The variable explorer doesn't show the shape of np arrays in the "count" column. Steps to cause the bug to occur....
Read more >why converted numpy array is NOT showing in the variable ...
When I tried to convert this column to numpy array by SMB=np.array(ff['SMB']) , it went through but didn't show in the variable explorer....
Read more >Python NumPy Array Tutorial
Learn how to create a NumPy array, use broadcasting, access values, manipulate arrays, and much more in this Python NumPy tutorial.
Read more >iPython console gets totally unresponsive when using large ...
The problem is clearly reproducable with large dataframes and an activated "Variable Explorer" in the python console. If I disable the "Show Variables"...
Read more >4. Visualization with Matplotlib - Python Data Science ...
Matplotlib is a multiplatform data visualization library built on NumPy arrays, and designed to work with the broader SciPy stack. It was conceived...
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 FreeTop 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
Top GitHub Comments
Validated.
I think this feature is really important for many data scientists.