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
print(sys.version)

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

/opt/homebrew/bin/python3

Python Version and Location in Jupyter Notebook

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org



















Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap