ruff/crates/ruff_notebook/src
Dhruv Manilawala 6bbabceead
Allow transparent cell magics (#8911)
## Summary

This PR updates the logic for `is_magic_cell` to include certain cell
magics. These cell magics would contain Python code following the line
defining the command. The code could define a variable which can then be
referenced in other cells. Currently, we would ignore the cell
completely leading to undefined-name violation.

As discussed in
https://github.com/astral-sh/ruff/issues/8354#issuecomment-1832221009

## Test Plan

Add new test case to validate this scenario.
2023-12-07 14:15:43 -06:00
..
cell.rs Allow transparent cell magics (#8911) 2023-12-07 14:15:43 -06:00
index.rs Add cell field to JSON output format (#7664) 2023-10-13 01:06:02 +00:00
lib.rs Add CellOffsets abstraction (#8814) 2023-11-22 15:27:00 +00:00
notebook.rs Allow transparent cell magics (#8911) 2023-12-07 14:15:43 -06:00
schema.rs Create ruff_notebook crate (#7039) 2023-09-01 13:56:44 +00:00