`No REPL open` when attempting to `+eval/send-region-to-repl`

What happened?

I can open a REPL with +python/open-repl . I’ve activated my Python environment with pyvenv-activate but I can’t send regions to the open REPL. There are no other messages in the Messages buffer other than No REPL open. when I run +eval/send-region-to-repl

What did you expect to happen?

Selected lines of Python should be sent to my open REPL, or, if no REPL open, sent to a new REPL the function creates.

Steps to reproduce

  1. Open any Python file with Python code.
  2. Select a region of code.
  3. Run +eval/send-region-to-repl

System information

In my init.el I have (python +lsp +pyright +tree-sitter).

The relevant part of my config.el:

(after! python                     ;
  :config
  ;; Default to IPython.  Otherwise, prefer the versioned Python 3 binary to
  ;; handle systems that have the unversioned one point at Python 2!
  (cond
   ((executable-find "ipython")
    (progn
      (setq python-shell-buffer-name "IPython")
      (setq python-shell-interpreter "ipython")
      (setq python-shell-interpreter-args "-i --simple-prompt")))
   ((executable-find "python3")
    (setq python-shell-interpreter "python3"))
   ((executable-find "python2")
    (setq python-shell-interpreter "python2"))
   (t
    (setq python-shell-interpreter "python"))))

Loading data dump...

This topic was automatically closed after 90 days. New replies are no longer allowed.