Skip to content

[BUG] Cells which start with %%html lead to SyntaxError #177

Description

@Dobatymo

Describe the bug
%%html at the start of a cell can be used to output raw html. flake8-nb fails with E999 SyntaxError: invalid syntax.

To Reproduce
Have a cell like

%%html
<a href="#">asd</a>

in the notebook and run flake8-nb

Expected behavior
These cells should be ignored like other non-code cells.

Desktop (please complete the following information):

  • OS: Windows 10 x64
  • Version: Python 3.8.10 with flake8-nb==0.3.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions