Skip to content
This repository was archived by the owner on May 27, 2022. It is now read-only.
This repository was archived by the owner on May 27, 2022. It is now read-only.

Support indented/inline line magics #13

@bollwyvl

Description

@bollwyvl

Line magics can appear just about anywhere:

however, the whitespace of code generated by hy is not preserved:

(if True
  %ls
)
  File "<ipython-input-17-b11eae11951f>", line 1
    (%ls if True else None)
     ^
SyntaxError: invalid syntax

likely a macro is needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions