Skip to main content

exporter helps to export Jupyter notebooks as a Python script.

Project description

exporter

exporter is a simple package that helps to export Jupyter notebooks as a Python script. Add #export or # export comments anywhere in the notebook cell you want to export as a Python script. Cells in the same notebook will be exported to the same Python script.

The best part of the exporter, it will not create any artifacts when you export cells.

Installation

pip install exporter

Check PyPI for all the versions available.

Usage

  1. Add #export or # export comments to cells you want to export.
    1. Option 1: Use command line.
      exporter notebook_path.ipynb output_path.py
      
      For all the options:
      exporter --help
      
    2. Option 2: Use Python function.
      from exporter import export
      export("notebook_path.ipynb","oytput_path.py")
      

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

exporter-0.0.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

exporter-0.0.2-py3-none-any.whl (4.4 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