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

Add the ability to handle Jupyter magics in code blocks #57

Closed
wants to merge 3 commits into from

Conversation

basnijholt
Copy link
Contributor

Several popular packages use Jupyter magics (%) in code cells to set some options.

For example, just to name a few IPython, ipyparallel, and HoloViews do this.

With this PR, blacken-docs is able to format cells that contain %%someoption.

@asottile
Copy link
Contributor

this isn't safe as discussed in #36

@asottile asottile closed this Sep 18, 2020
basnijholt added a commit to python-adaptive/adaptive that referenced this pull request Oct 27, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants