Skip to content

Ingore blank lines #54

Description

@Karthik-Dulam

I'm using iron.nvim as my repl and I have configured it to ignore blank lines, it works if I use iron.nvim's api visual_send but not with the run_cell from NotebookNavigator.nvim's run_cell. Below is the same code run using both apis in the repl.

# %%
def foo():
    print("Bar")

    print("Zoinks!")
    return

# %%

In Ipython

In [1]: print ("With Iron.nvim visual send")
With Iron.nvim visual send

In [2]: def foo():
   ...:     print("Bar")
   ...:     print("Zoinks!")
   ...:     return
   ...: 

In [3]: print ("With NotebookNaviagtor.nvim run_cell")
With NotebookNaviagtor.nvim run_cell

In [4]: def foo():
   ...:     print("Bar")
   ...: 

In [5]:     print("Zoinks!")
Zoinks!

In [6]:     return
  File "<ipython-input-6-9b32c1431b19>", line 1
    return
    ^
SyntaxError: 'return' outside function

Activity

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

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