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
I am having this issue in neovim v0.8.1 using neovim terminal using jupyter-console (Jupyter console 6.4.4, IPython 8.8.0 with Python 3.11.1).
The function is:
def test(arr):
result = 0
for i in range(6):
for j in range(6):
print(arr[i][j])
return result
The error is:
In [121]: for j in range(6):
...: print(arr[i][j])
...: return result
File <tokenize>:3
return result
^
_IndentationError: unindent does not match any outer indentation level_
What I tried:
If I just copy/paste the text to the console, it works.
Enabling let g:slime_python_ipython = 1 doesn't work because jupyter-console responds:
"UsageError: Line magic function %cpaste not found"
Same as trying to toggle %autoindent resluts in:
UsageError: Line magic function %autoindent not found.
The text was updated successfully, but these errors were encountered:
Looks like it may have to do with the neovim terminal.
I installed a newer neovim v0.8.2 and it doesn't give me that error, but it correctly sends the text to the buffer without adding the final "Enter".
So to fully evaluate the function I need to switch to the terminal and press the Return button to get input evaluated.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I am having this issue in neovim v0.8.1 using neovim terminal using jupyter-console (Jupyter console 6.4.4, IPython 8.8.0 with Python 3.11.1).
The function is:
The error is:
What I tried:
If I just copy/paste the text to the console, it works.
Enabling let g:slime_python_ipython = 1 doesn't work because jupyter-console responds:
"UsageError: Line magic function
%cpaste
not found"Same as trying to toggle %autoindent resluts in:
UsageError: Line magic function
%autoindent
not found.The text was updated successfully, but these errors were encountered: