Skip to main content

Package for listing versions of python packages used in a Jupyter notebook.

Project description

print_versions

Package for listing versions of python packages used in a Jupyter notebook.

Installation

pip install print-versions

Usage

Print versions in requirements.txt format:

from print_versions import print_versions

import numpy as np
from pandas import DataFrame

print_versions(globals())

# numpy==1.25.2
# pandas==1.5.3

Get versions as a dict:

from print_versions import get_versions

import numpy as np
from pandas import DataFrame

get_versions(globals())

# {'numpy': '1.25.2', 'pandas': '1.5.3'}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

print_versions-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

print_versions-0.1.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page