Tagged Questions
0
votes
1answer
50 views
pyqtgraph/chaco/guiqwt: Fast scrolling timetrace demo
I want to implement a fast scrolling timetrace tool in python. The timetrace data is already all in memory in a numpy array and is big (>1e6 samples). I need a tool for quick visual inspection.
I ...
4
votes
1answer
77 views
Failing to export properly to svg and pdf with matplotlib
I am trying to save a .svg image from an interactive path editor based on this example: path_editor.py. Saving a PNG image works just fine, but when I save to SVG or PDF, the paths are not exported.
...
0
votes
1answer
44 views
Non-flicker interactive Image sequence display with wxpython
I've created an interactive image sequence viewer. The viewer would work almost perfectly only if there is no flickering. I read a bit about double buffering and find it a bit confusing. I need ...
1
vote
3answers
59 views
How to link two depended inputs of unknown size with variables
This is my first python script. My data looks like this:
Position ind1 ind2 ind3 ind4 ind5 ind5 ind7 ind8
0 C A C A A A A A
1 C A C C C A A ...
1
vote
1answer
164 views
Matplotlib interactive graph embedded in PyQt
I've created a simple python script that when run should display an embedded matplotlib graph inside a PyQT window. I've used this tutorial for embedding and running the graph. Aside from some ...
0
votes
2answers
106 views
input vs. raw_input: Python Interactive Shell Application?
I was working off of the answer in this question: Python Interactive Shell Type Application
My code looks like this
def main():
while True:
s = input('> ')
if s == 'hello':
...
0
votes
1answer
54 views
python sys library command prompt
I am trying out the sys library in python. In command prompt I am using this.
>>>import sys
>>>sys.ps1 ='$'
#my own input 'print 'test print''
$print 'test print'
test print
That ...
2
votes
1answer
122 views
Creating interactive animations of physical systems in Python [closed]
I am currently diving into Python, coming from Mathematica/Matlab/C. I want to learn how to create interactive plots (or better animations) in Python's matplotlib library and possibly integrate them ...
2
votes
1answer
95 views
matplotlib pan-zoom colorbar axis
Matplotlib allows for the creation of nice interactive plots. Dragging while holding the left mouse button allows us to pan the plot left-right or top-bottom. Dragging while holding the right mouse ...
0
votes
1answer
71 views
best interactive Python guide [closed]
Can anyone chime in and advise me on any full fledged tutorials for completely new programmers who want to learn Python as a first language? I would like one source where I can take videos or lessons ...
0
votes
1answer
34 views
Change default repr in interactive python from builtins.repr to reprlib.repr
On the interactive Python prompt, when I don't bind the output of an expression foo to a name, Python will write the output of builtins.repr(foo) to the terminal.
In newer versions of Python, there ...
0
votes
0answers
82 views
Communicate with Rar.exe in Python
From a Python script I want to create a RAR file. I will need to communicate with Rar.exe because I only want the first RAR volume from a multi-volume archive set, nothing more. The -vp switch makes ...
0
votes
1answer
85 views
develop with notepad and run in python, or use Interactive Python?
I use python as follows...
notepad++ is on left of screen.
Black command prompt is on right of screen.
I write my python prog in notepad and save it to dir python as ggg.py ,then using (control S).
I ...
0
votes
3answers
53 views
Python object names and the interactive interpreter
When I define a class and create an instance of it, entering the instance name into the shell returns a memory location. No surprise there, but does anybody know how to define a class in such a way ...
2
votes
1answer
477 views
Python Matplotlib interactive plotting - freezes after a few frames
I am having a problem getting matplotlib to work well with interactive plotting... what I see is that after displaying a few frames of my simulated data matplotlib hangs-and doesn't display any more.
...
4
votes
6answers
336 views
Enter Interactive Mode In Python
I'm running my Python program and have a point where it would be useful to jump in and see what's going on, and then step out again. Sort of like a temporary console mode.
In Matlab, I'd use the ...
-1
votes
2answers
5k views
New Website Project - php vs python vs ruby [closed]
I started a project about a website magazine. Up to now i have only created the css, some javascripts and the html layout to show my employers what is it about.
So i want to make it more interactive ...
0
votes
2answers
139 views
Alternative for scripting in SVG for using in python
Is there a way to achieve something similar to scripting in svg file, so it works when it's opened in python gui? I need funcionality similar to one in this example, but I am opening my svg in python ...
3
votes
1answer
125 views
How to write a automated tool for debugging a child process through gdb
I have a script in python, which spawns a new process which I want to debug in gdb. Generally I do the usual process to debug this child process. Put sleep in this process until some condition is true ...
3
votes
4answers
168 views
start interactive mode on a specific script line
I need to run my Python script as usual, but I want to stop execution on a specific line and start interactive mode.
In other words, I want to be able to check the value of all my variables at that ...
0
votes
3answers
61 views
inconsistent behaviour of interactive session and script in Python
When I run the script, I had this ImportError:
$ python ~/Dropbox/code/py/ZoteroFindOrphanedFiles.py
Traceback (most recent call last):
File ...
1
vote
1answer
177 views
How to get interactive output from a piped command in Python?
I currently have this code, whcih works and produces the output you would expect, ie a list of the output lines if you were to run 'ls -ltr | less' from the terminal.
p1 = ...
2
votes
1answer
1k views
Running an interactive command from within python
I have a script that I want to run from within python (2.6.5) that follows the logic below:
Prompt user for password. Looks like ("Enter password: ") (*Note: Input does not echo to screen)
Output ...
0
votes
0answers
122 views
Changing the label positions in scatterplot
I made a scatterplot with around 50 points using:
scatter(x,y,'o')
If I add labels to all of them then it become messy. So I want to remove the labels of unimportant points and label only the ...
7
votes
2answers
237 views
python interactive shell 16x faster than command line - what's wrong?
I'm using Enthought EPD-Free 7.3-1 on a small function, and when I cut/paste into an interactive session (PyLab) and run it, it takes less than a second. When I run the same code from the command ...
1
vote
1answer
124 views
What would you use to create an interactive geometry program with python?
What libraries/modules would you recommend for creating an interactive geometry program?
What I have found includes: Pyglet, Pygame, Pycairo, Sympy
I'll illustrate the basic requirements with an ...
1
vote
1answer
433 views
Python and Interactive Zoom Plot with Matplotlib
I am using a Matplotlib plot (with Basemap) inside of a wxPython pane. I have got the plot (US map with scatter plot of cities). I am trying to do some interactive zoom capabilities (select a box on ...
0
votes
2answers
61 views
Python: how to cleanup up the messy pop-up list
Quick demonstration of the problem:
Define a module and name it functions.py containing: (this is just an example)
from __future__ import division
from scipy import *
def a():
return sin(1)
...
0
votes
1answer
236 views
how to monitor the subprocess realtime
I am a newbie to python.
I am working on a project currently.
by clicking a button A, the command "adb shell getevent" will be executed in one subprocess.
the result will be write to a file.
There ...
3
votes
2answers
160 views
How does `cat` work in ipython interactive shell?
I noticed that using cat on a file works in ipython. It doesn't appear to be listed as a magic command... so I am confused how/why it works. What lets cat work in ipython interactive shell?