From bff9655b7d239c119737c7461ae94dc737d107c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Hendrik=20M=C3=BCller?= <44469195+kolibril13@users.noreply.github.com> Date: Thu, 31 Mar 2022 08:10:33 +0200 Subject: [PATCH 1/4] custom jupyter cell magic --- docs/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 70f9b51394f..6c44d5146f6 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -57,7 +57,7 @@ _Black_ is timid about formatting Jupyter Notebooks. Cells containing any of the following will not be formatted: - automagics (e.g. `pip install black`) -- non-Python cell magics (e.g. `%%writeline`) +- non-Python cell magics (e.g. `%%writeline`). However these non-Python cell magics can be added with the flag `--python-cell-magics` e.g. `black --python-cell-magics "%%writeline" notebooks/foo.ipynb`. - multiline magics, e.g.: ```python From ba59d35289a5e5d706222ba2988362dbe5a13d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Hendrik=20M=C3=BCller?= <44469195+kolibril13@users.noreply.github.com> Date: Thu, 31 Mar 2022 08:33:07 +0200 Subject: [PATCH 2/4] fix syntax --- docs/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 6c44d5146f6..2f101fef100 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -57,7 +57,7 @@ _Black_ is timid about formatting Jupyter Notebooks. Cells containing any of the following will not be formatted: - automagics (e.g. `pip install black`) -- non-Python cell magics (e.g. `%%writeline`). However these non-Python cell magics can be added with the flag `--python-cell-magics` e.g. `black --python-cell-magics "%%writeline" notebooks/foo.ipynb`. +- non-Python cell magics (e.g. `%%writeline`). However these non-Python cell magics can be added with the flag `--python-cell-magics` e.g. `black --python-cell-magics writeline hello.ipynb`. - multiline magics, e.g.: ```python From 275d4edf8d953f350d7454ba3fe1a14345228318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Hendrik=20M=C3=BCller?= <44469195+kolibril13@users.noreply.github.com> Date: Fri, 1 Apr 2022 08:20:53 +0200 Subject: [PATCH 3/4] Update docs/faq.md Co-authored-by: Jelle Zijlstra --- docs/faq.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 2f101fef100..8094efd325f 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -57,7 +57,7 @@ _Black_ is timid about formatting Jupyter Notebooks. Cells containing any of the following will not be formatted: - automagics (e.g. `pip install black`) -- non-Python cell magics (e.g. `%%writeline`). However these non-Python cell magics can be added with the flag `--python-cell-magics` e.g. `black --python-cell-magics writeline hello.ipynb`. +- non-Python cell magics (e.g. `%%writeline`). These can be added with the flag `--python-cell-magics`, e.g. `black --python-cell-magics writeline hello.ipynb`. - multiline magics, e.g.: ```python From 3923899ff4cc84fd78c7350630d515519ecefe90 Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Sat, 2 Apr 2022 11:17:10 -0400 Subject: [PATCH 4/4] Please prettier --- docs/faq.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 8094efd325f..a5919a39af5 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -57,7 +57,8 @@ _Black_ is timid about formatting Jupyter Notebooks. Cells containing any of the following will not be formatted: - automagics (e.g. `pip install black`) -- non-Python cell magics (e.g. `%%writeline`). These can be added with the flag `--python-cell-magics`, e.g. `black --python-cell-magics writeline hello.ipynb`. +- non-Python cell magics (e.g. `%%writeline`). These can be added with the flag + `--python-cell-magics`, e.g. `black --python-cell-magics writeline hello.ipynb`. - multiline magics, e.g.: ```python