Format code in Jupyter notebooks
Project description
jupyfmt
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
Release history Release notifications | RSS feed
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)