Questions tagged [interactive-mode]

59 questions
64
votes
4 answers

'git stash apply' with Interactive Mode

I have a serie of files into a stash (stash{0}) and I would like to git apply just some parts/hunks of these files (usually known as Interactive mode). Is it possible? I've seen that is possible to perform a git stash save -p 'Stash name' but it…
Kamafeather
  • 8,663
  • 14
  • 69
  • 99
45
votes
6 answers

Is there an "immediate window" in Visual Studio Code to run Javascript?

Yes, I use F12 in the browser all the time to test out Javascript snippets with the console. I'm tired of that (for the moment anyway). I've read that in Visual Studio you can use the immediate window to run Javascript interactively.. I've haven't…
42
votes
4 answers

Git diff: Write output and exit instead of interactive mode

When I run git diff on my OSX command line, the output is displayed inside a less or vim interface. The interface lets me to scroll up and down, and quit using the q key. This is very annoying, especially when there is no diff and git opens a blank…
Adam Matan
  • 128,757
  • 147
  • 397
  • 562
22
votes
10 answers

Why use Python interactive mode?

When I first started reading about Python, all of the tutorials have you use Python's Interactive Mode. It is difficult to save, write long programs, or edit your existing lines (for me at least). It seems like a far more difficult way of writing…
Mantas Vidutis
  • 16,376
  • 20
  • 76
  • 92
21
votes
2 answers

Exact semantics of Matplotlib's "interactive mode" (ion(), ioff())?

The documentation for the "interactive mode" in Matplotlib's pyplot reads: The interactive property of the pyplot interface controls whether a figure canvas is drawn on every pyplot command. If interactive is False, then the figure state is updated…
Eric O. Lebigot
  • 91,433
  • 48
  • 218
  • 260
9
votes
3 answers

mac os php intratactive mode has no prompt

I'm trying to run PHP in interactive mode from the terminal window and when i run the command php -a it says "Interactive mode enabled" but does not show me the "php->" prompt that it should. I have to press control z to get out of interactive…
mcgrailm
  • 17,469
  • 22
  • 83
  • 129
9
votes
2 answers

Cocoa wrapper for an interactive Unix command

Ok, so I know you can make an NSTask to run command line tools with Objective-C: NSTask *task; task = [[NSTask alloc] init]; [task setLaunchPath: @"/usr/bin/gdb"]; [task launch]; I'm just wondering if there's a way to communicate with interactive…
brendanzab
  • 950
  • 1
  • 11
  • 29
7
votes
2 answers

Matplotlib ion() and subprocesses

I am trying to have a plot pop up so the user can confirm that a fitting worked, but not hang up the entire process doing so. However, while the window appears, there is never anything in it, and it is "Not Responding". I suspect that there is a bad…
Elliot
  • 5,211
  • 10
  • 42
  • 70
5
votes
2 answers

What are the magic variables in CLISP's REPL?

I have noticed that when I type an operator in REPL, it is often expanded into a value which has something to do with the input/output history. Specifically I noticed that: +, ++ ... expand to previous inputs, *, ** ... expand to previous…
Kos
  • 70,399
  • 25
  • 169
  • 233
5
votes
2 answers

Linux C: interactive output

I'm developing some kind of mysql monitoring tool so I need interactive output like top command. Is there any lib that can be used for this?
5
votes
1 answer

Grails default package name

I am new to Grails and I like it very much. I want to place my classes in packages like org.company.project.module.model. Its quite painful for to me to repeat create-domain-class .. Is there something like "package templates"…
svobol13
  • 1,842
  • 3
  • 25
  • 40
4
votes
2 answers

Testing and Debugging `awesome/rc.lua`

How to run lua commands from awesome/rc.lua in an interactive iterpreter? I'm trying to create some functions in ~/.config/awesome/rc.lua for new key bindings. Sometimes I get an error and I want to test these functions by printing the tables and…
Doron Behar
  • 2,606
  • 2
  • 21
  • 24
4
votes
1 answer

Opening Lua Files in Interactive Mode

I am beginning to learn Lua on my own with basically no prior programming knowledge. I understand the basics of types, functions, tables, etc. But in following the Lua tuts at Lua.org, I'm currently on the "Modules Tutorial" and am having issues…
Pwrcdr87
  • 935
  • 3
  • 16
  • 36
4
votes
3 answers

In what ways is python different when run in interactive mode?

I have some Python code that works as expected if I type the commands one-at-a-time using Python's interactive mode. The same code crashes if saved as myscript.py and run as 'C:\Python27\python.exe myscript.py'. In what ways could running Python…
Andrew
  • 2,842
  • 5
  • 31
  • 49
3
votes
1 answer

First programming language to have an interactive shell?

Out of sheer curiosity and the pursuit of trivia, I couldn't find an answer on Google quickly. Dear fellow programmers, what is the first programming language to provide an interactive shell?
Xavier Ho
  • 17,011
  • 9
  • 48
  • 52
1
2 3 4