How to know the Python Version of Jupyter Notebook

If you want to know which specific version of Python you are using with your Jupyter Notebook, well you can write in a small code snippet one of the cells to quickly find out.

import sys

3.11.3 (main, Apr 7 2023, 20:13:31) [Clang 14.0.0 (clang-1400.0.29.202)]

As you can see I am using Python 3 version 3.11.3

Know Python Version Jupyter Notebook

Another quick way is by running the shell command in a cell.

!python3 --version

Python 3.11.3

You can even get the location where Python is installed using the which command.

which python3


Python Version and Location in Jupyter Notebook

Have Questions? Post them here!