You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR introduces two new nodes for the parser to recognize the
`MagicCommand` tokens:
* `StmtLineMagic` for statement position i.e., magic commands on their
own line:
```python
%matplotlib inline
!pwd
```
* `ExprLineMagic` for expression position i.e., magic commands in an
assignment statement:
```python
# Only `?` and `!` are valid in this position
dir = !pwd
```
Both nodes are identical in their structure as in it contains the magic
kind and the command value as `String`.
No description provided.
The text was updated successfully, but these errors were encountered: