e2b-dev / e2b-dev/E2B

JS chart deserializer keeps unrecognized x_scale and y_scale

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

Nobody has claimed this yet.

bug Code Interpreter javascript sdk
Dominant language
Python
Stars
13.9k
Forks
1k
Avg merge
1d 20h
Merged PRs (30d)
70

Description

Python LineChart(..., x_scale='not-a-scale') is ScaleType.UNKNOWN. JS ScaleType in packages/code-interpreter-js/src/charts.ts has no UNKNOWN, and deserializeChart for line/scatter returns { ...data }, so x_scale stays 'not-a-scale'. ChartType already has UNKNOWN on the default branch.

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.

Research direction

Start in packages/code-interpreter-js/src/charts.ts and inspect ScaleType plus the line/scatter branches of deserializeChart. Done means unrecognized x_scale and y_scale values follow the UNKNOWN behavior used by Python instead of remaining raw strings; verify the chart deserialization behavior with the repository’s relevant checks.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.