How to check the python version used in jupyter notebook or databricks notebook


Here are two simple commands to use in the cell to check the current python version.

method 1

!python --version

method 2

from platform import python_version
print(python_version())

Author: robot learner
Reprint policy: All articles in this blog are used except for special statements CC BY 4.0 reprint policy. If reproduced, please indicate source robot learner !
  TOC