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.

Show dicts and other types properly in Jupyter data viewer

See original GitHub issue

One of the biggest features of Spyder, is that the Variable explorer can show correctly various types of Python and is able to keep opening then when they are nested.

import numpy as np
from sklearn.preprocessing import MinMaxScaler

scaler=MinMaxScaler()
aaa={'a':'string',
     'b':100,
     'c':np.array([1,2,3]),
     'd':{'e':[1,2,3,4]},
     'f':scaler}

In Spyder image image

When I try to do the same in VSCode image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DonJayamannecommented, Apr 25, 2022
1reaction
alandemacommented, Oct 27, 2021

Hello, Any improvement coming to Data Viewer?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Viewer fails to show anything but simple lists and dicts
OS: Windows 10 but SSH'd to Ubuntu 16.04. Python and/or Anaconda version: 3.8.2; Type of virtual environment used: venv; Jupyter server running: ...
Read more >
In Python how to obtain a partial view of a dict? - Stack Overflow
Kinda strange desire, but you can get that by using this from itertools import islice # Python 2.x dict(islice(mydict.iteritems(), 0, ...
Read more >
Python Basics: Lists, Dictionaries, & Booleans - Mode Analytics
This lesson of the Python Tutorial for Data Analysis covers writing and running Python code and basic Python objects like strings, lists, and...
Read more >
Python - Lists & Strings & Dictionaries - Galaxy Training!
This tutorial is best viewed in a Jupyter notebook! ... and a list can be called a “hetereogenous” list, since it has multiple...
Read more >
Python: Pretty Print a Dict (Dictionary) – 4 Ways - Datagy
Dictionaries are a key component of working with data in Python, ... depth : the number of levels to show while using nested...
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