Interactive software accepts and responds to input from humans, in contrast to noninteractive software, which operate without human contact.
Questions tagged [interactive]
1873 questions
20
votes
4 answers
How can I use, in Visual Studio 2017, the "C# Interactive" window to query a source in my "Data Connections"
I'm connected to an external SQL server in my "Data Connections" (in the "Server Explorer" view). I can right click my SQL source and click "New Query" to quickly look up data with SQL statements.
I would like to use LINQ instead and I think the "C#…

BTC
- 2,975
- 1
- 19
- 25
20
votes
1 answer
Adding Completion to (interactive)
Is there any way to add my own completion to an (interactive) elisp function? Ideally, I'd like to pass it a list of strings that it would tab-complete from. I know that using (interactive "D"), (interactive "F") or (interactive "b") give you…

Inaimathi
- 13,853
- 9
- 49
- 93
20
votes
3 answers
Emacs lisp: Concise way to get `directory-files` without "." and ".."?
The function directory-files returns the . and .. entries as well. While in a sense it is true, that only this way the function returns all existing entries, I have yet to see a use for including these. On the other hand, every time a use…

kdb
- 4,098
- 26
- 49
19
votes
5 answers
git rebase -i presents an empty MacVim file
I'm trying to rebase a commit. However, any time I run git rebase -i f83eff3ffc8, for example, a MacVim window opens, that's empty (there is no information in the file). Then once I write and close the file (even though it's empty), I get a…

Kevin Burke
- 61,194
- 76
- 188
- 305
18
votes
1 answer
Writing a lazy, functional, interactive command line application in Clojure
I'm wondering: what is the best way to write a Clojure program that interacts with a user or another program thorough stdin and stdout?
Clearly it would be possible to write some kind of imperative loop, but I'm hoping to find something more lazy /…

mikera
- 105,238
- 25
- 256
- 415
18
votes
5 answers
bash: choose default from case when enter is pressed in a "select" prompt
I'm prompting questions in a bash script like this:
optionsAudits=("Yep" "Nope")
echo "Include audits?"
select opt in "${optionsAudits[@]}"; do
case $REPLY in
1) includeAudits=true; break ;;
2)…

joniba
- 3,339
- 4
- 35
- 49
17
votes
1 answer
dynamic interactivity problem
I am trying to have two panels, the left showing a graphic and two locators, the right one a zoomed-in version in the area defined by the locators.
I've tried
ClearAll[mndpt];
mndpt = Compile[{{c, _Complex}, {maxiter, _Integer}},
Module[{z,…

acl
- 6,490
- 1
- 27
- 33
17
votes
1 answer
Interactively rotate a 3D plot
I was wondering how it is possible to interactively rotate a 3D plot as described in this video (if you decide from above or underneath or from right or left). I can generated a 3D plot in spyder or in a jupyter Notebook but after that it remains…

ecjb
- 5,169
- 12
- 43
- 79
17
votes
6 answers
Use main function in R
I've been using R for 4 months now, and I really hope there is a way to use main function as in other languages (C++, Python...)
The main reason I want to do this is that all the variables I use in a R script are global variables that can…

BlueFeet
- 2,407
- 4
- 21
- 24
17
votes
4 answers
Haskell: How to write interactive interpreter on top of a State monad?
We're working on a model filesystem that uses a state monad internally. We have a type class with operations like these:
class Monad m => FS m where
isDirectory :: Path -> m Bool
children :: Path -> m [Path]
...
We're working on a…

Norman Ramsey
- 198,648
- 61
- 360
- 533
17
votes
4 answers
How does sympy work? How does it interact with the interactive Python shell, and how does the interactive Python shell work?
What happens internally when I press Enter?
My motivation for asking, besides plain curiosity, is to figure out what happens when you
from sympy import *
and enter an expression. How does it go from Enter to calling
__sympifyit_wrapper(a,b)
in…

daltonb
- 635
- 8
- 26
17
votes
6 answers
Is there a way to make python become interactive in the middle of a script?
I'd like to do something like:
do lots of stuff to prepare a good environement
become_interactive
#wait for Ctrl-D
automatically clean up
Is it possible with python?If not, do you see another way of doing the same thing?

static_rtti
- 53,760
- 47
- 136
- 192
16
votes
1 answer
Benefits of using integer values for constants rather than numeric values (e.g. 1L vs 1) in R
In R source code, most (but not all) functions use integer values for constants:
colnames <- function(x, do.NULL = TRUE, prefix = "col")
{
if(is.data.frame(x) && do.NULL)
return(names(x))
dn <- dimnames(x)
if(!is.null(dn[[2L]]))
…

Thomas
- 457
- 2
- 12
16
votes
3 answers
Is it possible to build a interactive C shell?
I'm just wondering if this is possible using either (Python, Java or C)? I'm looking for something like IPython for Python.

Mino Yarre
- 161
- 1
- 1
- 3
16
votes
1 answer
Plot zoom and locator in RStudio
Is there a way to enable locator() functionality in the RStudio plot zoom? This only works in the smaller window (default bottom right) of RStudio but when you click on a viewer already open as a separate window, no coordinates are…

boshek
- 4,100
- 1
- 31
- 55