JS SuperChart deserializer reads data instead of elements, and Result never deserializes charts

Open Beginner friendly
#1,821 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, typescript
Domain
devtools

Research direction

Start with packages/code-interpreter-js/src/charts.ts and messaging.ts, then compare their SuperChart and Result handling with Python _deserialize_chart and Result. Trace the chart payload through deserializeChart and Result, and verify that SuperChart elements and Result charts are deserialized consistently.

Written by the indexing model from the issue text.

Description

bug Code Interpreter sdk

deserializeChart in packages/code-interpreter-js/src/charts.ts maps SuperChart children from data.data. The SuperChart type and Python _deserialize_chart use elements. Result in messaging.ts assigns this.chart = data['chart'] and never calls deserializeChart. Python Result does call _deserialize_chart.

Dominant language
Python
Stars
13.9k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
70

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from e2b-dev/E2B

All issues in e2b-dev/E2B

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.