1,524 questions
1
vote
1
answer
95
views
How do I display a continuation prompt with `rustyline`?
I'm writing a simple REPL for a language with rustyline, and I'm trying to support multiline input using ^J. How do I get rustyline to display a read-only continuation prompt while inserting a ...
0
votes
0
answers
64
views
Sublime chain command and Repl
I update to Sublime 4 and I am getting problems with an older chain command keymaps.
I am triying to close a Sublime Repl session with a simple chain command, my old shortcut work fine with Sublime 3 ...
2
votes
1
answer
126
views
C# interactive console: how to fix error CS0234: The type or namespace name 'RSA' does not exist in the namespace 'System.Security.Cryptography'?
I wanted to play around with the .NET cryptography classes in the C# interactive console in Visual Studio 2022 (v17.14.16). I tried creating the default instance of the System.Security.Cryptography....
1
vote
1
answer
74
views
Run file in REPL by default with run button
By default the run button (triangle) in VS Code runs as new process, not in REPL. This is only available in the drop down next to it. Is it possible to set running in REPL as default?
Note: I am ...
1
vote
1
answer
190
views
Evaluating typed expressions in interactive ts-node
I'd like to know how to evaluate a TypeScript typed expression using ts-node --interactive as a REPL. I'm using a Mac and have installed node v24.5.0 via brew, and I've installed ts-node v10.9.2 and ...
0
votes
0
answers
44
views
Sublime: Shortcut to always run specific group or file
I Always work with 3 windows for run a Latex file, in a specific group using Tinitex or Knitr in R (Repl).
In group 3 include commands (set working directory and name file latex) to render or compile ...
0
votes
0
answers
58
views
Is it possible to host a REPL child process in rustyline?
I'm currently working on a rustyline program. My goal is to host another REPL program as a child process, and do something like auto complete its commands. However, I encountered a problem. The ...
1
vote
1
answer
263
views
Why does the Python REPL behave differently in VS Code's vs native cmd.exe?
I am running the same python.exe, from the same working directory, in VS Code's terminal running cmd.exe, and in Windows Terminal running cmd.exe. For some reason, these two behave differently.
In ...
2
votes
3
answers
402
views
How can I execute a Python script in the REPL interpreter mode and get the exactly same output as if it was manually typed in? (Ubuntu, Python 3.12)
The Python interpreter can be run either in script or interactive/REPL mode.
I do have a Python script as text file but want to run it as if it was manually typed in in the interactive/REPL mode.
I ...
1
vote
2
answers
390
views
How to run Clojure REPL using IntelliJ and Cursive plugin
I am desperately trying to set up a working environment for Clojure 1.12.0.1488, using IntelliJ 2024.3, Cursive's plugin 2025.1.1-343 and openJDK 24.
I am using VoidLinux based on kernel 6.12.28_1, ...
3
votes
2
answers
202
views
Shift+enter inserts extra indents
I have a Python source file with some dummy code:
a = 3
if a == 1:
print("a = 1")
elif a == 2:
print("a = 2")
else:
print("Other")
When I submit the code to ...
1
vote
1
answer
73
views
Scala REPL missing commands
I have installed scala through coursier. Running scala --version in the terminal gives the following:
C:\Users\Me>scala --version
Scala code runner version: 1.4.3
Scala version (default): 3.5.1
...
4
votes
1
answer
70
views
Using Swift as custom engine in knitr and including all previous content
Backrgound
I'm working on a R Mardkown document which I'm renderring using the knitr package. The document uses Swift as a custom enginge. I'm defining the Swift engine as follows:
```{r, setup, eval=...
0
votes
3
answers
94
views
Common Lisp: Why does using read-from-string create two REPL outputs?
I have been learning Common Lisp for a short while, using the SBCL 2.0.0 REPL on a Windows 10 machine. At one point in time I inputted the 2 following lines into a REPL:
(defvar var-string (print (* 5 ...
2
votes
1
answer
448
views
How to best change the colour of the Python prompt?
I have an alias for python3 and one for a Python calculator (pm for Python Math):
alias p3='python3 -q'
alias pm='python3 -qic"from math import *; import sys; sys.ps1=\"] \"; sys.ps2=\&...
9
votes
1
answer
964
views
How to paste code into the REPL without adding extra spaces on the left [closed]
I am running Python 3.13.1. When I paste code into the Python REPL, Python adds extra spaces at the beginning of every line after the first.
I wrote this code in Notepad and pasted it into Python.
if ...
0
votes
1
answer
321
views
How to resolve vscode python REPL ModuleNotFoundError
In vscode I’m encountering a ModuleNotFoundError when trying to import a module (src) located in my project workspace folder in a Python REPL. Here's the situation:
When I run:
import os
os.getcwd()
...
0
votes
1
answer
150
views
How to Customize REPL Output Format in Guile Scheme?
The existing question How to have objects print nicely in Guile scheme repl focuses on customizing the printing of specific user-defined objects (e.g., GOOPS classes). In contrast, I want to globally ...
0
votes
1
answer
64
views
How to spawn an interactive bash shell in Guile REPL with proper I/O redirection?
When attempting to spawn an interactive bash shell from within a Guile script using the system* function from the ice-9 popen module, the shell does not behave as expected. Specifically, the standard ...
1
vote
2
answers
294
views
Python 3.13 REPL key-binding ctrl+arrows not working
Previously when I ran py3.12 in shell I could use ctrl + left arrow or ctrl + right arrow to move one word back or forward (skip words).
Recently I've upgraded to py3.13 and it doesn't work anymore, ...
1
vote
1
answer
176
views
Make interactive ruby REPL display results for consecutive commands, not only the last?
If I run this
a = "hello"
b = "world"
a
b
in ruby
irb(main):007> a = "hello"
=> "hello"
irb(main):008> b = "world"
=> "world"
...
0
votes
1
answer
32
views
Common Lisp setting *print-circle* T causes list compression?
(setq *print-circle* T)
;; then create some list with a large number of items, of which a bunch
;; of them repeat
If you then try to print the list in the repl, you will see a lot of unfamiliar text....
4
votes
1
answer
349
views
Python 3.13 REPL with vim or emacs key bindings?
I just upgraded to Python 3.13 and found that the vim key bindings that I had set up via readline and ~/.editrc, which worked in previous releases of the Python REPL, no longer work. Is there some way ...
7
votes
1
answer
2k
views
Kotlin REPL deprecated?
When I type kotlin (or kotlinc) to get into the REPL interactive shell in the latest 2.1 beta, I see this:
Welcome to Kotlin version 2.1.0-Beta2 (JRE 21.0.4+8-LTS-274)
Warning: this REPL ...
1
vote
0
answers
62
views
Custom completer in node REPLServer withou losing built-in completions
I'm using the built in repl package in Node with a custom completer:
const replServer = repl.start({
completer: myCustomCompleterFunction,
});
The purpose of the custom completer is to ...
0
votes
1
answer
615
views
How to embed a Replit Project on Wix, so that it automatically runs, and fits the screen of the website
I tried to make an embed on Wix, but I didn't how to. I also tried to make an embed on W3 schools, which kind of worked, but it didn't run the project but instead showed the files of the project.
I ...
0
votes
1
answer
150
views
lldb running in REPL mode, need example REPL configuration file (android)
I have lldb 18.1.5 running on a Termux installation replete with multiple languages, but cannot get lldb -r -R "language" going for any of them. Apparently I need a config file .lldbinit-...
1
vote
0
answers
75
views
How to enable Kotlin REPL autocomplete
I'm totally new to kotlin so I just installed IntelliJ on my pc for a course I'm taking.
Since I'm not new to programming using the autocomplete is merely to save a little time. I assumed it'd be ...
-1
votes
1
answer
311
views
How to invoke a function stored in a static library from clang-repl
Is there a mechanism that lets user to invoke a function stored in a static/archive library from clang-repl?
"%lib" magic only recognizes dynamic libraries. I further tried to utilize ...
1
vote
1
answer
101
views
How do I get the command history using Haskelline?
I can't seem to figure out how to get Haskeline to allow the user to use the arrow keys to go through command history.
I read Hackage and tried using Settings { complete = completeFilename, ...
2
votes
0
answers
110
views
iPython features in pytest debugging sessions
I'm struggling with pytest configuration. I would like to:
use breakpoint() wherever I want in my tests to start debugging sessions,
in that case, be able to enter multi line inputs (several lines of ...
0
votes
1
answer
33
views
How do you paste a multiline string into .editor mode?
I've got a SQL string that I'd like to run a regex against. I can't get it to paste correctly.
> .editor
// Entering editor mode (Ctrl+D to finish, Ctrl+C to cancel)
s="with docs as (
...
0
votes
1
answer
121
views
How to handle ParseError when evaluating exponents (powers) in Julia
I use Julia version 1.10.0. When evaluating power expressions such as 2^3, in REPL, Pluto or VScode, the exponent change immediately into a superscript and then get a ParseError with the information ...
1
vote
1
answer
180
views
No output in Kotlin REPL of IntelliJ IDEA
I am trying to follow a tutorial where I need to paste Kotlin code into Kotlin REPL of IntelliJ IDEA.
But when I paste the content and press CTRL+ENTER to execute I cannot see any output.
Any ideas ...
0
votes
1
answer
115
views
What difference between syntax-quote in Clojure and syntax-quote in Clojurescript?
In Clojure REPL:
(macroexpand-1 `(sum 2 1)) ; (user/sum 2 1)
In Clojurescript REPL:
(macroexpand-1 `(sum 2 1)) ; AssertionError: Assert failed: Argument to macroexpand-1 must be quoted
Why it ...
2
votes
1
answer
180
views
How to quit or exit evcxr in Rust without ctrl-c'ing?
Simple question, but how can i exit or quit Rust's REPL tool called evcxr?
I tried quit(), exit(), :q and ran out of ideas after that.
Well I can always do ctrl-c of course, but I was wondering if ...
1
vote
2
answers
713
views
Is there any way to specify the type of event loop for the asyncio REPL in Python?
I'm working on some networking code in Python that uses the asyncio module and I like to use the Python REPL from -m asyncio a lot for testing examples. What I've noticed though is the default event ...
2
votes
0
answers
91
views
How do I write a string to the Slime REPL's input buffer?
I'm writting a shell in Common Lisp that reads command from the user's input and returns the output after executing. When the user types a "meta" command I want to write a placeholder so ...
0
votes
1
answer
59
views
Undefined function in node.js REPL session from js file
I have a test js script to load into REPL session:
// testRepl.js
const cls = () => console.clear();
const msg = txt => console.info(txt);
const ajax = url => msg(url);
I am loading this ...
0
votes
1
answer
338
views
Problem in controlling cursor position through readline in Node.js
I am designing a console app in Node.js using readline to control the cursor positions and get user input. Here is a library I have written for the same:
// ReadLine.js
const readline = require("...
-1
votes
1
answer
74
views
Why does this code give me a syntax error?
Why does this code give me a syntax error in idle?
if I use python online, which was correct.
I was expecting an output like the second photo.
What is the problem and how can I fix it?
2
votes
2
answers
79
views
Node REPL : Latest Script file contents are not getting fetched using require method
While using node js repl to run run require command latest file changes are not getting captured.
OS => Windows 11
Node Version => 16.6.0
Let script.js has content
global.testObject = {};
...
0
votes
1
answer
131
views
My core.clj functions will not upload into the REPL. I've checked them all individually and they all compile by hand. What do I do? [closed]
I'm coding a small project and so far all of my code is just in the core.clj file. I can't remember the exact steps I took, but I was messing around with the debugger and now my core.clj file will ...
0
votes
2
answers
97
views
How to dedent a block in Python3 under MacOS?
I am learning Python3. It is executed on MacOS/Terminal by running python3.
I was able to execute some examples from the book "Deep Learning with Python, Second Edition", but I am stuck now ...
1
vote
2
answers
478
views
How to set Python 3.9 interactive editor to Vim mode
In Python 2.7, when I opened Python interactively
with the >>> prompts, the commands it took were Vim style. I love that.
When I use Python 3.9 it doesn't and the editor is much more ...
1
vote
1
answer
193
views
How to spawn a second console window and read from and write to it?
I have a node server which displays logs of stuff happening in the terminal.
I want to put a repl server in it so I can control the server while it is running.
But I do not want the logs and the repl ...
1
vote
1
answer
165
views
Using nohup with Julia prints everything out as if it's REPL. Can this be avoided?
Let's say I have a Julia script called myscript.jl. It contains the following code:
x = 3
When I call this script using nohup:
nohup julia < myscript.jl > out_myscript.log &
I get this on ...
1
vote
1
answer
884
views
Getting pyreadline3.Readline's history working with Python 3.9
I am following this
Q&A's procedure for
accessing Python's REPL command history -- specifically at the Conda
prompt, not in an IDE.
I am using Python 3.9 installed under Anaconda on Windows 10. ...
0
votes
0
answers
59
views
Xamarin.UITest find element in ios application using REPL and tree command
I am trying to run IOS tests using xamarin. the same test automation is running on android.
tree:
tree image
REPL tool after querying all elements :
app.Query(c=>c.All())
enter image description ...
-7
votes
1
answer
96
views
clj repl overwrites output
I start the repl with cjl and get the prompt
Clojure 1.11.1
user=>
At the user prompt I enter (+ 1 2 3) and hit return. The output is this:
user=> (+ 1 2 (+ 1 2 3)
6
I think the operation I ...