session-info2¶
Start by importing the main function and calling it:
from session_info2 import session_info
session_info() # note that the “copy” button only works in a live notebook
If you call it while some packages are in scope, you should see them appear in the list:
session_info()
In environments where ipywidgets
is not available, you will see the HTML version of the output instead:
from IPython.display import HTML
HTML(session_info()._repr_mimebundle_()["text/html"])
Component | Info |
---|---|
Python | 3.12.7 (main, Nov 5 2024, 15:33:39) [GCC 13.2.0] |
OS | Linux-5.19.0-1028-aws-x86_64-with-glibc2.39 |
Updated | 2024-12-17 12:29 |
Dependencies
Dependency | Version |
---|---|
six | 1.17.0 |
wcwidth | 0.2.13 |
pure_eval | 0.2.3 |
jupyter_core | 5.7.2 |
pyzmq | 26.2.0 |
debugpy | 1.8.11 |
comm | 0.2.2 |
packaging | 24.2 |
Pygments | 2.18.0 |
decorator | 5.1.1 |
python-dateutil | 2.9.0.post0 |
stack-data | 0.6.3 |
platformdirs | 4.3.6 |
ipython | 8.30.0 |
jupyter_client | 8.6.3 |
parso | 0.8.4 |
tornado | 6.4.2 |
executing | 2.1.0 |
prompt_toolkit | 3.0.48 |
jedi | 0.19.2 |
psutil | 6.1.0 |
ipywidgets | 8.1.5 |
asttokens | 3.0.0 |
ipykernel | 6.29.5 |
traitlets | 5.14.3 |
Copyable Markdown
| Dependency | Version | | --------------- | ----------- | | six | 1.17.0 | | wcwidth | 0.2.13 | | pure_eval | 0.2.3 | | jupyter_core | 5.7.2 | | pyzmq | 26.2.0 | | debugpy | 1.8.11 | | comm | 0.2.2 | | packaging | 24.2 | | Pygments | 2.18.0 | | decorator | 5.1.1 | | python-dateutil | 2.9.0.post0 | | stack-data | 0.6.3 | | platformdirs | 4.3.6 | | ipython | 8.30.0 | | jupyter_client | 8.6.3 | | parso | 0.8.4 | | tornado | 6.4.2 | | executing | 2.1.0 | | prompt_toolkit | 3.0.48 | | jedi | 0.19.2 | | psutil | 6.1.0 | | ipywidgets | 8.1.5 | | asttokens | 3.0.0 | | ipykernel | 6.29.5 | | traitlets | 5.14.3 | | Component | Info | | --------- | ------------------------------------------------- | | Python | 3.12.7 (main, Nov 5 2024, 15:33:39) [GCC 13.2.0] | | OS | Linux-5.19.0-1028-aws-x86_64-with-glibc2.39 | | Updated | 2024-12-17 12:29 |
Compare the output with session-info
:
import session_info as si
si.show()
Click to view session information
----- session_info 1.0.0 session_info2 NA -----
Click to view modules imported as dependencies
asttokens NA comm 0.2.2 cython_runtime NA dateutil 2.9.0.post0 debugpy 1.8.11 decorator 5.1.1 executing 2.1.0 ipykernel 6.29.5 ipywidgets 8.1.5 jedi 0.19.2 packaging 24.2 parso 0.8.4 platformdirs 4.3.6 prompt_toolkit 3.0.48 psutil 6.1.0 pure_eval 0.2.3 pydev_ipython NA pydevconsole NA pydevd 3.2.3 pydevd_file_utils NA pydevd_plugins NA pydevd_tracing NA pygments 2.18.0 six 1.17.0 stack_data 0.6.3 tornado 6.4.2 traitlets 5.14.3 wcwidth 0.2.13 zmq 26.2.0
----- IPython 8.30.0 jupyter_client 8.6.3 jupyter_core 5.7.2 ----- Python 3.12.7 (main, Nov 5 2024, 15:33:39) [GCC 13.2.0] Linux-5.19.0-1028-aws-x86_64-with-glibc2.39 ----- Session information updated at 2024-12-17 12:29