I am aware that several questions on SO seem to address this problem (e.g. this, this). However, the reported solution seem not to work in my code (python 3.6.5). In the first case, fewer modules are printed, in the second case a lot more information is displayed (sys.modules.keys()
).
Is there an easy way to display all imported top modules together with versions (through __version__
) in a similar fashion as sessionInfo()
in R?