Skip to main content

Generate notebook_requirements.txt files for Jupyter Notebooks (.ipynb files).

Project description

nbreqs

WORK IN PROGRESS - NOT READY FOR USE

nbreqs is a lightweight Python tool designed to extract the external library dependencies from Jupyter notebooks.

I'm working on this library because I manage repositories of notebooks with poetry, whereas users will only use single notebooks and copy them to other directories not managed by poetry. They thus need requirements files specific to each notebook instead of the repository's requirements.

Features

  • Extracts only external dependencies (ignores standard library modules).
  • Works on Jupyter notebooks.
  • Generates minimal <notebook>_requirements.txt files (one per notebook).

Installation

TO BE DETERMINED

How It Works

nbreqs parses the Python code in memory, extracts all external libraries using ast, and filters out any standard library modules. It then queries the installed version of each library without needing to import them into your environment.

Development

MAYBE LATER

License

nbreqs is licensed under the MIT License.

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

nbreqs-0.1.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

nbreqs-0.1.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

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