Edit this page on our live server and create a PR by running command !create-pr in the console panel

Working with Python 2 and Python3

  • Difficulty level: easy
  • Time need to lean: 5 minutes or less
  • Key points
    • SoS is based on Python 3 and can be used as a Python 3 kernel
    • Python 2 kernel should be installed as a subenvironment

Python 2 and Python 3

SoS uses pickle to exchange data between SoS (Python3) and Python2 and Python3 kernels so any pickleable data types can be exchanged.

In [1]:
In [2]:
Out[2]:
'1234'