If you are using Jupyter Notebook on your device locally and want to know what version of Python has been used, you can try one of the below options.
Option 1: Using sys module
Add the below line of code into one of the cells and execute.
import sys
print(sys.version)
Output:
Add the below line of code into one of the cells and execute.
import sys
print(sys.version)
As we can see from the output, I am using Python version 3.11.4 with my Notebook.

Option 2: Running Python --version Command in Notebook
Another way is by making use of the command - python --version in a cell.
!python3 version
!python version

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Another way is by making use of the command - python --version in a cell.
!python3 version!python version
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!