How to know which is running in Jupyter notebook?

后端 未结 5 769
长发绾君心
长发绾君心 2020-12-04 15:59

I use Jupyter notebook in a browser for Python programming, I have installed Anaconda (Python 3.5). But I\'m quite sure that Jupyter in running my python commands with the n

5条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-04 16:56

    from platform import python_version
    
    print(python_version())
    

    This will give you the exact version of python running your script. eg output:

    3.6.5
    

提交回复
热议问题