check python version in jupyter notebooks code example
Example 1: get python version jupyter
from platform import python_version
print(python_version())
Example 2: python version command notebook
import platform
print(platform.python_version())