add version information for non python packages #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 :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