I wish to return the version of Jupyter Notebook from within a cell of a notebook.
For example, to get the python version, I run:
from platform import python_version
python_version()
or to get the pandas version:
pd.__version__
I have tried:
notebook.version()
ipython.version()
jupyter.version()
and several other, related forms (including capitalizing the first letters), but get errors that (for example):
NameError: name 'jupyter' is not defined
I am aware of other ways (e.g. clicking on Help>About in the GUI menu; using the conda command line) but I want to automate documentation of all package versions.
If it matters, I am running v6.1.1 of Notebook in a Python 3.7.3 environment.