# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .sos
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: SoS
#     language: sos
#     name: sos
# ---

# + [markdown] kernel="SoS"
# # How to work with Python 2, and Python3

# + [markdown] kernel="SoS"
# * **Difficulty level**: easy
# * **Time need to lean**: 10 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

# + [markdown] kernel="Matlab"
# ## Python 2 and Python 3

# + [markdown] kernel="Matlab"
# SoS uses pickle to exchange data between SoS (Python3) and Python2 and Python3 kernels so any pickleable data types can be exchanged.

# + kernel="Python3"
a = '1234'

# + kernel="SoS"
# %get a --from Python3
a

# + [markdown] kernel="SoS"
# ## Further reading
#
# * [How to exchange variables among living subkernels](doc/user_guide/exchange_variable.html)

StarcoderdataJupyterScriptsDedupFiltered