Out of range float values are not JSON compliant printed to STDERR in Code Sandbox
Open
@mishushakov is already working on this.
Since May 10, 2025.
bug
Code Interpreter
- Dominant language
- Python
- Stars
- 13.9k
- Forks
- 1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 70
Description
Getting the following warning printed to stderr in the code sandbox, when doing a display of a dataframe with, apparently, float values and/or NaNs.
"/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
This is being fed to agents so it's a bit confusing, how can we disable these warnings?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.