Skip to main content

A code formatter for python code in ipython notebooks

Project description

ipynb_format.py is a small script to format the python code in ipython notebooks. The code formatter is based on yapf.

Installation

To install from PyPI on Linux:

$ pip install ipynb_format

or from Github:

$ pip install --upgrade https://github.com/fg1/ipynb_format/archive/master.tar.gz

Usage

usage: ipynb_format [-h] [--style STYLE] [files [files ...]]

Format ipython notebook using yapf

positional arguments:
  files

  optional arguments:
    -h, --help     show this help message and exit
    --style STYLE  yapf style to use

The formatting style option is the same as for yapf.

Project details


Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
ipynb_format-0.1.1.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page