Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [repl]

The tag has no usage guidance.

1
vote
1answer
40 views

How to send buffer to a repl without showing it in prompt?

I'm using nodejs-repl, though the question applies to sending text to any repl. I'd like to send a buffer to the repl, which I do with C-c C-b, but I don't want the buffer text to show in the prompt. ...
2
votes
1answer
42 views

ModuleNotFound for absolute imports in Emac's Python Repl

For some reason, emacs does not seem capable of evaluating absolute imports for any python project I run. Here is my project layout: ├── loxy │   ├── errors.py │   ├── __init__.py │   ├── loxy.py │   ...
2
votes
2answers
57 views

Displaying a second buffer with a shell?

I would like to have a text buffer for writing to a file on the left side and a shell (zsh) on the right side for interacting with a REPL. Is that possible? At the moment I realize that with tmux ...
1
vote
2answers
84 views

How to load an Idris file that depends on a package?

Working in Spacemacs (on Linux Mint, if that is relevant), using the Idris layer, one of my major mode commands is SPC m-r (Vim-style keybindings): idris-load-file. This causes Spacemacs to load up an ...
1
vote
1answer
218 views

Spacemacs trigger holy mode in major mode

I'm using Spacemacs for clojure development and have gotten used to the vim commands mostly. However, when I start up a Repl I would like to only use holy mode with insert mode. Does anyone know how/...
1
vote
1answer
325 views

No native completion with python3 in Emacs 25.2

On Emacs 25.2 and Python 3.5 on an Centos-like Oracle Linux I have the issue that invoking a python shell gives me no completion. To reproduce, start $ emacs -Q --eval '(setq python-shell-interpreter ...
1
vote
0answers
49 views

Edebug REPL / IELM

I toggled edebug-defun on a function I'm studying. Once the debugger kicks in, how can I fire a REPL with access to the symbols being debugged?
0
votes
1answer
118 views

Is it possible on Cider to eval on a repl and print as a comment every evaluation on a buffer?

If I want to demonstrate something, is it possible that I can run a command on cider and it prints after each line the result of evaluating that line ? (def xx {:a "a" :b "b"}) (:a xx) (:c xx []) ...
1
vote
1answer
89 views

Python-Repl issues with TRAMP Mode [windows->Linux]

I have an issue when using python-mode remotely through tramp. I'm trying to use the repl and pass a test function using C-c C-c, however this seems to create a local file at my own computer or ...
1
vote
0answers
80 views

Sending an s-expression to another buffer

I'm currently working in Clojure with Arcadia, which is requiring me to use a REPL that doesn't have support with Cider. This has been giving me some trouble given how I usually code, so I'd like to ...
0
votes
0answers
126 views

comint based REPL (q-mode) does not respond

I installed q-mode in Emacs 24.5.1 with Spacemacs. I am running emacs in the terminal mode (Ubuntu server): root@ubuntu-kdb:~# emacs Pressing SPC SPC q launches inferior q shell and I am getting the ...
1
vote
0answers
563 views

Python inline plotting

I'd like to start using Emacs (Spacemacs) for my python work, however, a lot of what I do requires me to interact with the data in the IPython REPL, plot inline graphs, etc. For example, I might have ...
7
votes
2answers
5k views

Your ‘python-shell-interpreter’ doesn’t seem to support readline

I've got this problem with my 25.1 and Python 3.5 on Ubuntu 16.10, but I don't see it being solved anywhere. Wondering what the latest status was. Reproducing: > emacs -Q --eval '(setq python-...
4
votes
2answers
623 views

How set python shell arguments with python-mode.el?

When I use default inferior shell I can set something like this: (setq python-shell-interpreter "python" python-shell-interpreter-args "-i /absolute/path/to/manage.py shell_plus") How set this ...
1
vote
0answers
148 views

How can I set python-mode.el shell completion like default inferior shell?

Autocompletion in python-mode.el opens another completion window with available completions. It looks like this But I need to use company completion like default inferior python shell How can I ...
0
votes
3answers
884 views

How to get python-x (eval-in-repl) to work?

I'm looking to be able to do the same thing as ESS but for python, ie to be able to have two windows side by side one with python shell and the other with text file and send current line or block ...
1
vote
0answers
194 views

How to make racket the default implementation for geiser mode

The geiser documentation suggests that setting geiser-default-implementation is one way to prevent run-geiser from prompting for a scheme implementation. Another approach suggested by the geiser docs ...
0
votes
0answers
170 views

How to Save and Re-Open REPL Buffer

I am relatively new to Lisp and Emacs (using Aquamacs). I have figured out how to use the basic REPL cycle of development. My predicament is that when I save the buffer, it saves as a txt file. When I ...
0
votes
1answer
120 views

Limit virtual memory for all emacs sub-processes

I know I can use ulimit -v ###KiloBytes### to limit the virtual memory of a shell and all subprocesses started by it, but it's annoying to have to open emacs from a shell everytime just for such a ...
5
votes
1answer
1k views

cider-jack-in: Symbol's function definition is void: clojure-project-dir

When I run cider-jack-in the following error appears. Symbol's function definition is void: clojure-project-dir I am very new to Emacs and this is totally stumping me. Let me know if you need more ...
2
votes
1answer
144 views

How do I protect command output in eshell and REPL buffers?

Since command outputs are easily mutable, I have to be careful when I work with eshell and REPL buffers. Is there a way to protect them?
3
votes
2answers
1k views

How to get a fully functional Julia REPL in emacs?

Some people like me prefer to keep as much as possible in one emacs window (it saves screen retail), so want to run Julia as an inferior shell in emacs. The "run-julia" command that comes with the ...
4
votes
1answer
127 views

Indentation in REPLs

I can't seem to get indentation working properly in the REPLs I've used so far (IELM, MIT-Scheme, and Python). Suppose I type the following and RET: ELISP> (defun something () _ My cursor ends ...
0
votes
1answer
143 views

How do I send a string to a REPL?

I am sending text to a REPL as if I had typed it in, like so: (insert "source activate py3; hy") How do I do the programmatic equivalent of pressing enter after inserting this string?
3
votes
1answer
161 views

How can I connect to a REPL and send and read data?

Let us say I have a command to start a REPL. How do I most easily read output and send input? A minimal example with shell, sending ls and reading the output would be appreciated. The shell should ...
0
votes
0answers
82 views

How to load defuns automatically at repl start up?

I'm working through SICP and I'm getting tired of defining the square function for the thousandth time, so I'd like to load it (and some others) automatically when I start the repl. I use Geiser, but ...
5
votes
1answer
682 views

Inferior Lisp Mode vs Superior Lisp Mode

Can someone explain all the differences in the various lisp modes (inferior, superior, slime, cider)? Which came first? Which are extra packages? What should one use?
2
votes
1answer
534 views

emacs, geiser, chiken scheme on windows setup help

I want to go through SICP. I installed Geiser and Chiken scheme I set the scheme interpreter to be chiken (setq scheme-program-name "C:/Program Files\ (x86)/Chicken Scheme/bin/csi.exe") Then I run ...
0
votes
1answer
830 views

Using TAB key for indentation in Python REPL produces strange indentation problems

I'm using the Python REPL in a comint window via the run-python command, and I'm seeing bad behavior when I use the TAB key to do my indentation. For example: >>> for i in range(3): ... ...
1
vote
1answer
31 views

Signal a buffer was evaluated in an inferior process?

I am aware that this is a bit of training wheels, and that I should just trust Emacs and my keystrokes. But I think part of it is just that there's a context switch involved and I have too long of ...
2
votes
2answers
364 views

Can't get a Node REPL with swank-js

I have followed the instructions on Github for setting up swank-js. I installed slime and slime-js from github and have the following in my .emacs file: (add-to-list 'load-path "~/slime/") (...
1
vote
1answer
274 views

Starting SLIME in a pop-up frame

Whenever I currently do M-x slime, it creates a split buffer, with SLIME going in the bottom half. This is not really very desirable - I'd much rather SLIME appeared in a separate frame, and kept its ...
4
votes
1answer
2k views

Haskell Interactive Mode Setup - cabal unrecognised command: repl

I'm trying to set up haskell-mode following this instructions [0] https://github.com/haskell/haskell-mode/wiki/Haskell-Interactive-Mode-Setup [1] http://tim.dysinger.net/posts/2014-02-18-haskell-...
7
votes
1answer
595 views

Change syntax highlighting without changing major mode?

I want to start a python-shell M-x python-shell. If I'm not happy with the syntax highlighting, is it possible to improve it (put more colors in the buffer) without changing major mode? In vim this ...
7
votes
2answers
2k views

How to integrate SLIME with MIT Scheme?

I know basics of Common Lisp. I've learned it using Emacs + SLIME, and I must say that without these two I wouldn't learn too much - using bare REPL is tough job. However, SLIME makes a great job at ...
10
votes
3answers
2k views

Emacs EIN vs IPython shell

I'm trying to make EIN work within Emacs, but right now (with IPython 2) it seems that it's not possible. This errors arise: REQUEST [error] Error from parser ein:json-read: (json-readtable-error) ...