Questions tagged [interactive-mode]

59 questions
2
votes
2 answers

my interactive bash script loop is breaking even if I have a trap INT that should prevent it?

on this simple script #!/bin/bash -i trap 'echo "(ctrl+c was hit)"' INT while true; do echo -n "hit Enter..";read echo "still on loop" done if I hit ctrl+c it will exit the loop if I make it not interactive with 1st line like #!/bin/bash,…
Aquarius Power
  • 3,729
  • 5
  • 32
  • 67
2
votes
1 answer

Ruby, pry: Can I add something to the command `pry example.rb` so pry automatically goes interactive when it finishes executing the script?

Pry goes into interactive mode if it encounters an exception (eg if you just put an undefined variable 'x' at the end of the script). (Also if, inside the script itself you require 'pry' and put binding.pry at the point you want to go interactive…
2
votes
1 answer

What is nargin outside of a function?

I was just writing a Matlab function and wanted to copy and paste what I had to an interactive session. Some of it was nargin statements (e.g. if nargin < 1; a = 0; end;), and it turns out that nargin had the value 11005 in my workspace, without my…
Nagel
  • 2,576
  • 3
  • 22
  • 20
1
vote
1 answer

redis-cli interactive mode: how to use --bigkeys

redis-cli -h host -p port --bigkeys will show a list of large keys, which is very convenient. but in my environment, I am limited to the interactive mode. Before I can type any commands, it's already connected to redis via interactive mode.…
Cui Pengfei 崔鹏飞
  • 8,017
  • 6
  • 46
  • 87
1
vote
1 answer

Continue program after plt.show() command without closing all windows

I know that there are plenty of similar topics in StackOverflow but none of the answers solved my specific problem. First of all, I am trying plot 2-dimensional data points from different classes with scatter command to the figure. The program uses…
T. Holmström
  • 153
  • 1
  • 12
1
vote
1 answer

How to code an app in android wear to always keep the screen active? (always in interactive mode)

I need to know if there is a way to keep an android wear app always in interactive mode. (i knonw this will drain battery life) Is the 'rotate away' gesture adressable or will the watch just go in ambient whenever the watch goes on it outer side?
1
vote
1 answer

use a batch script to run an R script interactively in the R shell

I can run an R script non-interactively from a batch file and save the output. I can open an interactive R session using a batch file. I can open R AND run a script from a batch file by doing one, then the other (but then the variables from the…
Elizabeth
  • 23
  • 5
1
vote
1 answer

For Japanese Full Width Characters, WPF textbox interactivity behavior AttachedObject PreviewTextInput doesn't work

I have developed a WPF textbox which formats numbers as we keep typing numbers in textbox. This is using interactivity behavior. Now, It works fine with normal regular keyboard. But as we support globalization, textbox should support to Japanese…
RJhon
  • 11
  • 2
1
vote
1 answer

tokenize/untokenize python string code so that it is compatible with interactive-mode

I have python code like that has this kind of structure def main: ''' comment ''' if True: print "do" print "done This code is not compatible with the interactive-mode (for example if I copy/paste it in an interactive session).…
Jerome WAGNER
  • 21,986
  • 8
  • 62
  • 77
1
vote
1 answer

pyplot display large numbers in interactive mode

I'm trying to plot large numbers on the x axis using the interactive mode, and instead of the full number on the ticks, i get 1, 1.5 and so on and +5.043e3. how can i display the full number? After defining the plt.ion(), i have this inside a…
0
votes
1 answer

Logging messages to file in Python not working when running outside interactive mode in VS Code

I have a simple Python code that logs messages to a file using the logging module. However, when I run this code in Visual Studio Code (VS Code) outside of the interactive mode, I do not see any logs in the file. Strangely, when I run the same code…
0
votes
1 answer

Python - Interactive mode vs. normal invocation of the interpreter

Is there a difference between the two modes in terms of resources, especially memory? I'm referring to Python in the title but if there is a common explanation to many interpreted languages (Octave, etc...) that would be very helpful. Thanks
mrk
  • 3,061
  • 1
  • 29
  • 34
0
votes
1 answer

Importing module from parent directory in python interactive mode

I'm trying to import and run a module from a parent directory in python interactive mode. My directory looks like this: modules: tests: So, I'm trying to import the modules in the modules directory while I'm in the test directory. This is…
0
votes
1 answer

Lua interactive mode reset

So I opened lua in my windows cmd. It is in interacive mode by default. I assigned some variables, created some functions. Now I want to flush it and start over. Do I need to quit with ctrl+Z and open it again or there is a command for it?
0
votes
1 answer

Powershell window does not hide even after adding -WindowsStyle hidden while running task from task scheduler

I have created a task in task scheduler. Its basically a powershell script which has to run in interactive mode. Task is running under SYSTEM account. In Actions tab, under Program/Script I have added path of the ServiceUI.exe e.g,…
Rajneesh Jha
  • 11
  • 1
  • 7