We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daba22b commit f14a2a5Copy full SHA for f14a2a5
.changeset/hot-dots-help.md
@@ -0,0 +1,5 @@
1
+---
2
+'@e2b/code-interpreter-python': patch
3
4
+
5
+Add to_dict() method
python/e2b_code_interpreter/charts.py
@@ -44,10 +44,14 @@ class Chart:
44
elements: List[Any]
45
46
def __init__(self, **kwargs):
47
+ self._raw_data = kwargs
48
self.type = ChartType(kwargs["type"] or ChartType.UNKNOWN)
49
self.title = kwargs["title"]
50
self.elements = kwargs["elements"]
51
52
+ def to_dict(self) -> dict:
53
+ return self._raw_data
54
55
56
class Chart2D(Chart):
57
x_label: Optional[str]
0 commit comments