Skip to main content

Format code in Jupyter notebooks

Project description

jupyfmt

PyPI Tests

Format code in Jupyter notebooks.

jupyter-black and nb_black are fabulous Jupyter extensions for formatting your code in the editor. jupyfmt allows you to assert properly formatted Jupyter notebook cells in your CI.

Installation

$ pip install jupyfmt

Usage

$ jupyfmt Notebook.ipynb
--- Cell 1 ---
--- original
+++ new
@@ -1,2 +1,2 @@
-def foo (*args):
+def foo(*args):
     return sum(args)


--- Cell 2 ---
--- original
+++ new
@@ -1 +1 @@
-foo(1, 2,3)
+foo(1, 2, 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

jupyfmt-0.1.1.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

jupyfmt-0.1.1-py3-none-any.whl (3.1 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