docs icon indicating copy to clipboard operation
docs copied to clipboard

nbfmt: Support using nbfmt as a component of shell pipeline

Open CourierKyn opened this issue 5 years ago • 2 comments

nbfmt now can read source of a notebook from stdin and can output formatted contents to stdout.

CourierKyn avatar Oct 25 '20 10:10 CourierKyn

Thanks, @CourierKyn ! I'm all for bash pipelines but what is the use case for this feature? curl directly to it? One issue I see is that it's skipping over the filename check which is required for us. A quick and dirty solution is just to create a temp file of possible a mkfifo to get around these limitations. This change seems a bit much for this feature and is why I've been putting off a review 😅

lamberta avatar Nov 17 '20 20:11 lamberta

Thanks for reply, @lamberta. I currently use this feature for git filter and diff. The problem does exist, because it can't set filename automatically according to the notebook path. I'm trying to find a solution to get the filename in this mode.

CourierKyn avatar Nov 21 '20 10:11 CourierKyn