Skip to content

Conversation

joeyutong
Copy link

Description

Cells that start with blank lines or spaces and then a magic (e.g., %%configure) are currently misclassified as “not a magic” and get wrapped into %%spark by the parser’s fallback branch. This PR trims leading whitespace before parsing so top-of-cell magics are recognized correctly

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. kind:bug An unexpected error or issue with sparkmagic labels Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug An unexpected error or issue with sparkmagic size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant