How to Know Which Python Version Installed on Jupyter Notebook

If you are making use of a Python Jupyter Notebook and you want to know which version of Python it is running on, you can try to write a small snippet of code in a cell and easily find out,

Example Code

    from platform import python_version
    print("The Python Version is: ", python_version())
    Know Python Version Installed with Jupyter Notebook

    Another Way is by making use of the sys module.

    import sys
    Python Version Google Colab

    I have used the above example to know the Python Version running on Google Colab 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:

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