Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fg1/ipynb_format
A code formatter for python code in ipython notebooks
https://github.com/fg1/ipynb_format
jupyter-notebook yapf
Last synced: 19 days ago
JSON representation
A code formatter for python code in ipython notebooks
- Host: GitHub
- URL: https://github.com/fg1/ipynb_format
- Owner: fg1
- License: other
- Created: 2016-05-11T17:55:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-19T06:54:35.000Z (over 8 years ago)
- Last Synced: 2024-10-10T17:21:27.890Z (about 1 month ago)
- Topics: jupyter-notebook, yapf
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
============
ipynb_format
============``ipynb_format.py`` is a small script to format the python code in ipython notebooks.
The code formatter is based on yapf_... _yapf: https://github.com/google/yapf.
Installation
============To install from PyPI on Linux:
.. code-block:: shell
$ pip install ipynb_format
or from Github:
.. code-block:: shell
$ pip install --upgrade https://github.com/fg1/ipynb_format/archive/master.tar.gz
Usage
=====.. code-block:: shell
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 useThe formatting style option is the same as for ``yapf``.