spyder-ide / spyder-kernels

Jupyter Kernels for the Spyder console
MIT License
39 stars 40 forks source link

PR: Enable comms to work across different Python versions #492

Closed impact27 closed 6 months ago

impact27 commented 6 months ago

Cloudpickle only works when the exact same version of python is used. Replaced with json.

This creates a bit more work because all the input and output of comms must be json serialisable or bytes

Goes with https://github.com/spyder-ide/spyder/pull/22120

Fixes #468

FrameSummary are not compatible between versions of python. This change follows the doc here: https://docs.python.org/3/library/traceback.html#traceback.FrameSummary