e2b-dev / e2b-dev/code-interpreter

Adding y_error to charts breaking data output

Open
#125 1 comment 0 reactions 1 assignee View on GitHub

@mishushakov is already working on this.

Since Jun 23, 2025.

bug Code Interpreter
Dominant language
Python
Stars
2.4k
Forks
228
Avg merge
48m
Merged PRs (30d)
5

Description

Breaking example:

import matplotlib.pyplot as plt
import pandas as pd

# Create a simple DataFrame with an additional column for standard deviation (error)
data = {
    "Category": ["A", "B", "C"],
    "Value": [10, 15, 7],
    "Std Dev": [1.5, 2.0, 0.8] # Example standard deviation values
}
df = pd.DataFrame(data)

# Create the bar plot with error bars (yerr)
plt.figure(figsize=(6, 4))
plt.bar(df["Category"], df["Value"], yerr=df["Std Dev"], capsize=5) # Added yerr and capsize
plt.xlabel("Category")
plt.ylabel("Value")
plt.title("Simplistic Bar Plot with Error Bars")
plt.tight_layout()
plt.show()

Working example:

import matplotlib.pyplot as plt
import pandas as pd

# Create a very simple DataFrame
data = {
    "Category": ["A", "B", "C"],
    "Value": [10, 15, 7]
}
df = pd.DataFrame(data)

# Create the bar plot without error bars
plt.figure(figsize=(6, 4))
plt.bar(df["Category"], df["Value"])
plt.xlabel("Category")
plt.ylabel("Value")
plt.title("Simplistic Bar Plot")
plt.tight_layout()
plt.show()

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.