'fingerprint' a notebook #270
gzt5142
started this conversation in
Coding Tips and Tricks
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This came up while debugging some libraries in nebari. . . A useful way of fingerprinting the environment in which a notebook is running would be:
That will print the versions of the named modules as cell output. Put any package names you like in the list. If you put a name of a module that isn't installed, you'll get an
Exception
.I don't imagine that this will be necessary or helpful for every notebook.... but it could be useful information to include in a "about the environment" notebook... and it is VERY helpful for debugging problems.
@rsignell-usgs -- a useful cell to include for any 'minimal reproducible example' notebook for bug reports, etc.
Beta Was this translation helpful? Give feedback.
All reactions