UserWarning: Message serialization failed with: Out of range float values are not JSON compliant

Open
#81 4 comments 0 reactions 1 assignee View on GitHub

@mishushakov is already working on this.

Since Apr 15, 2025.

Assessment

This issue has not been assessed yet.

Description

bug Code Interpreter

I'm constantly getting this message in stderr when displaying a pandas dataframe. This pollutes what the agent sees and may even impact our ability to getting the displayed dataframe data.

/usr/local/lib/python3.10/site-packages/jupyter_client/session.py:721: UserWarning: Message serialization failed with:
Out of range float values are not JSON compliant
Supporting this message is deprecated in jupyter-client 7, please make sure your message is JSON-compliant
  content = self.pack(content)

This is probably in your serialization code, perhaps? Can you check this and see if you or us can mitigate this warning?

This happens with a e2b sandbox template created today with the latest version of e2b.

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

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.

More from e2b-dev/code-interpreter

All issues in e2b-dev/code-interpreter

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.