Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use black.format_cell #35

Open
MarcoGorelli opened this issue Sep 5, 2021 · 6 comments
Open

Use black.format_cell #35

MarcoGorelli opened this issue Sep 5, 2021 · 6 comments

Comments

@MarcoGorelli
Copy link

black now has a function format_cell, which could be used directly. Would a PR to use this (instead of the current magic handling) be welcome?

@n8henrie
Copy link

Looks like it already uses this, right? https://github.com/dnanhkhoa/nb_black/search?q=format_cell&type=code

@MarcoGorelli
Copy link
Author

That's different

@n8henrie
Copy link

n8henrie commented Sep 11, 2021 via email

@MarcoGorelli
Copy link
Author

No worries 😄

@n8henrie
Copy link

@MarcoGorelli It seems like work has slowed down on this, so I've created a fork with a few enhancements, including:

https://github.com/n8henrie/jupyter-black

@MarcoGorelli
Copy link
Author

Wow, nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants