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.

Bug: The variable explorer doesn't show the shape of np arrays in the "count" column

See original GitHub issue

Bug: The variable explorer doesn’t show the shape of np arrays in the “count” column

Steps to cause the bug to occur

  1. Create two numpy arrays:
import numpy as np
x = np.array([1,2,3])
y = np.array([[1,2,3],[1,2,3]])
  1. Look at the variable explorer in the interactive window

Actual behavior

The “count” column shows only the number of rows I assume.

image

Expected behavior

I saw in a YouTube video that the “count” column should actually show the shape (x.shape)

image

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:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
IanMatthewHuffcommented, Apr 21, 2020

Validated.

image.png

1reaction
jaewooklee93commented, Mar 29, 2020

I think this feature is really important for many data scientists.

Read more comments on GitHub >

github_iconTop 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 >

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