Skip to content

Create check_automagic_parse.py#4869

Closed
arrMan-dev wants to merge 2 commits into
psf:mainfrom
arrMan-dev:patch-1
Closed

Create check_automagic_parse.py#4869
arrMan-dev wants to merge 2 commits into
psf:mainfrom
arrMan-dev:patch-1

Conversation

@arrMan-dev
Copy link
Copy Markdown

Parsing automagic without running python kernel, cells with parseable syntax like ast.parse or IPython will be skipped

Description

Checklist - did you ...

  • Implement any code style changes under the --preview style, following the
    stability policy?
  • Add an entry in CHANGES.md if necessary?
  • Add / update tests if necessary?
  • Add new / update outdated documentation?

arrMan-dev and others added 2 commits November 26, 2025 00:58
Parsing automagic without running python kernel, cells with parseable syntax like ast.parse or IPython will be skipped
@MeGaGiGaGon
Copy link
Copy Markdown
Collaborator

Thank you for the PRs, however this is not needed. We already have magic handling implemented, which you can find here https://github.com/psf/black/blob/main/src/black/handle_ipynb_magics.py .

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.

2 participants