pappasam / nvim-repl

52 stars 12 forks source link

REPL Hangs When Executing Python Cells #23

Open TheoFABIEN opened 1 week ago

TheoFABIEN commented 1 week ago

Hello, thank you for this nice plugin.

I have an issue when trying to execute Python cells. Although the REPL window opens without any problem, the input sent to the REPL does not produce any output and seems to be stuck in a computing state. However, I noticed that the behavior changes based on the following scenarios:

image

Environment:

Any guidance or suggestions on resolving this issue would be greatly appreciated. Please let me know if additional information or logs are needed!

pappasam commented 1 week ago

Interesting... I can't reproduce on the latest (nightly) neovim. That said, I'm using ipython with Python 3.12 and Neovim's latest nightly.

Here's my configuration for the repls I've configured:

let g:repl_filetype_commands = {
      \ 'bash': 'bash',
      \ 'javascript': 'node',
      \ 'python': 'ipython --quiet --no-autoindent -i -c "%config InteractiveShell.ast_node_interactivity=\"last_expr_or_assign\""',
      \ 'r': 'R',
      \ 'sh': 'sh',
      \ 'vim': 'nvim --clean -ERM',
      \ 'zsh': 'zsh',
      \ }
TheoFABIEN commented 1 week ago

I tried with a Python 3.12 install with ipython 8.27.0, but the problem persists. In my lazy.lua I pasted the installation code provided in the README.

pappasam commented 2 days ago

Can you upload a gif showing the issue? I cannot reproduce on my end