jrjohansson / version_information

IPython magic command for showing version information for dependency modules in a notebook.
54 stars 17 forks source link

add version information for non python packages #21

Closed iamashwin99 closed 1 year ago

iamashwin99 commented 1 year ago

This PR tries to fix the issue mentioned in #20. The PR assumes that the non python package ( say octopus ) takes a parameter --version to return the version information, which is true for a good number of such packages. The new usage for version_information would be :

%version_information pandas, postopus, !octopus

In [1]: %load_ext version_information

In [2]: %version_information pandas, postopus, !octopus
Out[2]: 
Software versions
Python 3.8.13 64bit [GCC 10.3.0]
IPython 8.4.0
OS Linux 5.19.0 0.deb11.2 amd64 x86_64 with glibc2.10
pandas 1.5.1
postopus 0.0.1.post1.dev986+gbc1e29c
octopus octopus 12.0 (git commit )
Thu Nov 10 13:58:06 2022 CET
iamashwin99 commented 1 year ago

Any thoughts @jrjohansson?

jrjohansson commented 1 year ago

Hi @iamashwin99, very sorry for the late reply. I'm not using GitHub frequently recently, so I just now noticed your message and PR. I think this looks great, thanks a lot for using this package and finding a solution for this. I'll merge this PR.