Questions tagged [repl]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
16 votes
4 answers
12k 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-...
  • 2,747
10 votes
3 answers
3k 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) ...
  • 1,581
8 votes
2 answers
3k 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 ...
  • 1,383
8 votes
1 answer
912 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 ...
  • 221
7 votes
1 answer
1k 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?
5 votes
1 answer
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 ...
5 votes
0 answers
499 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 ...
  • 93
4 votes
1 answer
967 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 []) ...
4 votes
1 answer
3k 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-...
  • 41
4 votes
3 answers
574 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? I know it's possible to evaluate commands with e in ...
  • 3,413
4 votes
1 answer
224 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 ...
  • 383
3 votes
2 answers
154 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 ...
  • 215
3 votes
1 answer
316 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?
  • 194
3 votes
2 answers
3k 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 ...
  • 788
3 votes
1 answer
826 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 ...
3 votes
2 answers
447 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 ...
3 votes
1 answer
656 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 ...
3 votes
1 answer
1k 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,111
3 votes
2 answers
1k 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 ...
2 votes
3 answers
3k 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 ...
2 votes
1 answer
666 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 │   ...
  • 423
2 votes
1 answer
20 views

How to let racket-mode handle language extensions (the #lang directive)?

I was wondering how to let racket-mode handle racket language extensions properly? I tried the following file from the link above (test.rkt): #lang datalog ancestor(A, B) :- parent(A, B). ancestor(A, ...
  • 1,058
2 votes
1 answer
220 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. ...
  • 131
2 votes
2 answers
429 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/") (...
2 votes
2 answers
130 views

tsun in inferior term prompts each character of input

I came across a problem when I run tsun in an inferior ansi-term (or term, eshell) buffer of emacs(24.4.1) in Debian 8.5. The tsun REPL echos every character while I input as shown in the following ...
1 vote
1 answer
130 views

Why jshell doesn't work in comint-mode?

When I try to run jshell using (comint-run "/usr/bin/jshell"), it presents me with the prompt but when I give it some input, the buffer gets frozen and I get no output. Conversely when I try ...
  • 13
1 vote
1 answer
1k 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/...
  • 163
1 vote
1 answer
425 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 ...
  • 425
1 vote
1 answer
42 views

Why does Slime have the two commands `C-down` and `M-n`?

I am new to the Common Lisp universe. In order to code in Common Lisp, I have started using Emacs and Slime (among other stuff, such as ParEdit). Emacs is another universe on its own. I realized that ...
1 vote
1 answer
245 views

org-babel's matlab (session) output is malformed

I'm trying to evaluate some Matlab code using org-babel in a session: #+BEGIN_SRC matlab :session :results output a = 1:10; b = a + 3 c = a - 3 #+END_SRC And following the org-babel documentation, ...
  • 31
1 vote
1 answer
253 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 ...
1 vote
1 answer
36 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 ...
1 vote
0 answers
69 views

What's the value in using a REPL for ELISP development? [closed]

What's the value in using a REPL? I've always wondered the advantages/disadvantages of using a REPL are (if there are any) as opposed to eval-print-last-sexp and then undoing the text printed (or ...
1 vote
1 answer
263 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 ...
  • 111
1 vote
0 answers
133 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 ...
1 vote
0 answers
1k 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 ...
  • 411
1 vote
0 answers
236 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
2 answers
43 views

How do I move the cursor to be just after the `>` character on the beggining of REPL evaluation?

I am using Emacs and Slime to work on Common Lisp code and I would like to know the most efficient way to move the cursor to the beginning of the REPL> assessment. For instance, modelling the ...
0 votes
1 answer
45 views

Is there a way to automatically indent a parenthesis in Slime REPL after pressing `C-m o`?

I am using Slime, Paredit, and SBCL to code in Common Lisp. While editing a .lisp file, suppose I have this code: (dotimes (i 4)) I will represent the cursor (point) as -!-. Having the cursor in this ...
0 votes
1 answer
77 views

In spacemacs, how do I copy code from the history in python REPL to my window which has a python source code file open?

I'm new to spacemacs -- I'm using it as a Python IDE. I'd like to know if there is an easy way to copy lines from the history on a REPL back to the source-code window. The idea is, I prototype in ...
  • 1,007
0 votes
1 answer
109 views

Is there a way to connect to a REPL without comint?

The performance of comint is not good when handling outputs of some REPL. Is there a way to connect to some REPL outside Emacs and let result display there, like in a terminal/browser/something else? ...
0 votes
1 answer
376 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?
0 votes
1 answer
1k 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): ... ...
  • 927
0 votes
0 answers
29 views

Why can't I access my lisp server when launched from the emacs repl

I have a lisp xml-rpc server. When I launch it from a repl in a terminal, the server responds to the client's requests but when this server is launched from the sly repl in Emacs, the client is stuck ...
  • 1
0 votes
0 answers
52 views

Send string to a fully functional REPL in Emacs on Windows?

Summary. Is there a way to get fully functional REPLs on Windows running in Emacs. I want to avoid the maintenance burden associated with comint. Long version. In many cases I dislike how the built-...
  • 1,501
0 votes
1 answer
41 views

How do I stop Prolog mode from jumping to the Prolog REPL when consulting the buffer?

Suppose I am using Prolog mode with the Prolog REPL started as an inferior process using CtrlcEnter. Whenever I "consult" (i.e. evaluate) the Prolog mode buffer using CtrlcCtrlb ((prolog-...
  • 553
0 votes
0 answers
23 views

how to get out of a (R) repl’s multi-line (multiple-line) / line-continuation mode

My question: In (an R-repl from ESS layer) in spacemacs, I can’t end a multiple-line after I start it myDf %>% # here i hit RET so then the REPL goes into multi line mode: + myDf %>% myDf %&...
  • 25
0 votes
0 answers
35 views

How many Python REPL's are there for emacs and their relative merits?

How many Python REPL's are there for Emacs and their relative merits? What OS have you tested them on? How long have you been using them? What version combos of python/emacs/ repl integrating software ...
0 votes
0 answers
148 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 ...
-2 votes
1 answer
74 views

Can "kaz-yos/eval-in-repl" use the prexisting "inf-ruby" console started by robe mode

I've been using org babel to execute ruby code, works well but wrapping blocks with begin_src/end_src is cumbersome no live output - i have to wait till the whole process finishes to see output ...