Skip to content

HTML escaped dictionary cannot open in the data viewer #1359

@rchiodo

Description

@rchiodo

Bug: Notebook Editor, Interactive Window, Editor cells

Steps to cause the bug to occur

  1. Debug a file with this code
import numpy as np
import pandas as pd
from pandas import Series
dict2 = {'a> <a href="bobs"/>':[1, 2, 3], '<b':[4, 5, 6]} 
df6 = pd.DataFrame.from_dict(dict2) 
print(df6) # Set breakpoint here
  1. Attempt to view the df6 or dict2 in the data viewer

Actual behavior

Error parsing json

Expected behavior

Viewer opens

Your Jupyter and/or Python environment

Please provide as much info as you readily know

  • Jupyter server running: Local | Remote | N/A
  • Extension version: 20YY.MM.#####-xxx
  • VS Code version: #.##
  • Setting python.jediEnabled: true | false
  • Setting python.languageServer: Jedi | Microsoft | None
  • Python and/or Anaconda version: #.#.#
  • OS: Windows | Mac | Linux (distro):
  • Virtual environment: conda | venv | virtualenv | N/A | ...

Python Output

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions