In [ ]:
system_name = platform.system()
# People might not know what 'Darwin' is, so we should replace that with 'Mac OS X'
if system_name == 'Darwin':
system_name = 'Mac OS X'
# get the architecture
architecture = platform.architecture()[0]
# get the rsmtool version
rsmtool_version_str = '.'.join(map(str, rsmtool_version))
display(Markdown('This report was generated using rsmcompare v{} on a '
'{} computer running {}.'.format(rsmtool_version_str,
architecture,
system_name)))
In [ ]:
import pkg_resources
package_names = '\n'.join(sorted(["%s==%s" % (i.key, i.version) for i in pkg_resources.working_set]))
display(HTML('<div id="packages"><pre>{}</pre></div>'.format(package_names)))