interactive

drop into an interactive session to examine a failed unit test

I'd like to be able to enter an interactive session, preferably with IPython, if a unit test fails. Is there an easy way to do this? edit: by "interactive session" I mean a full Python REPL rather than a pdb shell. edit edit: As a further explanation: I'd like to be able to start an interactive session that has access to the context i...

Can a website interact with a Click Once application? (launch it, or pass parameters to it?

I have a website that will host many Windows Workflow 4 flowcharts and I'd like to allow an end user to double click a workflow and then launch the Workflow designer (installed as click once, or a regular app) from there. What is the lowest friction way to achieve this? Is a file association the only way? ...

Best(?) way to make a popup menu for semi-portable shell scripts?

Basically I would love to say: echo `grep ^foo /usr/share/dict/words | popup_menu` ...and have some type of keyboard navigable menu popup or selection tool, very similar to how vim's ":Explore" mechanism works. Extreme bonus points for "easy and works pretty much everywhere with standard tools" Also acceptable is "needs some sort ...

What is in your Python Interactive Startup Script?

Are there any common timesavers that people put in Python Interactive Startup scripts? I made a dopey one to help me know where I am when I try to do relative file operations or imports, using a win32 module to change the name of the console window. import sys import os import win32api __title_prefix = 'Python %i.%i.%i %s %s' % (sys.ve...

PHP: Fusion chart tutorial

After researching into various charting solutions fusion charts looks like it will be most suited to my needs. I'm finding it difficult to get a good detailed tutorial on how to create a chart that lets the user can click on different data to open a new window. For example a pie chart of backup statistics (successful, failed, missing)...

How to assign the result of the previous expression to a variable in R?

Suppose I'm using R's interactive console, and I've just done something like this: long_running_command() That long-running command returns a value, and I've just realized that I wanted to assign that value to a variable instead of discard it. So how can I get that value without running the command again? Is there a command like this?...

Develop a 360-Degree Video Viewer

Hi, I'm interested in those 360-Degree video you can find on the web (like http://www.slopeviews.com/onsnow-beta/). I am wondering how all of this is working, and how one can start to implement a view like this. Any hint we be appreciated, thanks ! ...

Create console in python

Hi, I'm looking to have the same functionality (history, ...) as when you simply type python in your terminal. The script I have goes through a bunch of setup code, and when ready, the user should have a command prompt. What would be the best way to achieve this? ...

How to pause python execution in eclipse and return to an interactive prompt

I am using Eclipse as a Python IDE. Is there anyway for me to Debug my program and break to an interactive prompt. I am interested in exploring the existing data and running/testing commands. I believe there has to be a way, but I am so used to compiling languages that I have not been able to find where the options are. Any ideas? ...

Best interactive prototyping tool for a Semantic Network based RIA

I have a project that is based on semantic networks (i.e. triple stores), reasoning / recommendation engines and interactive visualisation (not just displaying the network, but manipulating the visual elements of the displayed network). The delivery is to be as a Rich Internet Application, delivered through a web browser. At this stage...

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. ...

Shell application in Vim window

I'm searching a way to start console application in vim window. So I could open python & php interactive shell in it. It would be very handy. I want something like :10 sp !python ...

What's a good way of connecting a Windows service with an interactive window (HWND) ?

I have two pieces of Windows technology which I'd like to plumb together: a TSP (a TAPI service provider) and an API wrapped around some hardware. The API accepts requests synchronously but returns success/fail/status result asynchronously by sending messages to a passed-down HWND. As I understand it, the problem is that because a TSP r...

Looking for a webbased SQL Game

A couple of weeks ago I found a great page. It basically was a level based SQL game. Starting off with simple queries you earned stars by completing tasks. The exercise declaration featured information about a certain database and what tables it features. You had to write statements/queries in the browser and solve the problem. The exerc...

Error reading an xml with mhp and xletview (interactive tv)

Hi, I have to make an application as a homework for my course for interactive tv using osmosys (implementation of mhp) as middleware. I'm trying to read an xml file using: DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(file); When I run it wi...

Python: read user-input directly from the prompt

Hi! I have to validate user-input from stdin that is not going to be entered by hitting the Enter-key. So readline() and other Enter-dependent functions are of no use to me. Practically the promt will be filled, and each keystroke has to be handled as an event. How do I get access to the promt buffer's contents? ...

Creating an Online Diagramming Tool.

Recently i have thought of setting myself the task of creating a basic digramming tool that would be web based and would like some input from other programmers and developers with more experience that myself. I have stumbled upon this Site that offers an amazing piece of software and was wondering how they went about creating such a thi...

Matplotlib, Pylab using TKAgg: encountering PyEval_RestoreThread: NULL tstate when using plt.ion() on win32

EDIT: Bah, finally found a discussion on the Runtime Error, although it focuses on using PythonWin, which I did not have installed at the time. After installing PythonWin and setting up GTK (as per an earlier question), I was still encountering the error. The solution from the discussion board here was to append plt.close() after the ...

How can I add a command to the Python interactive shell?

I'm trying to save myself just a few keystrokes for a command I type fairly regularly in Python. In my python startup script, I define a function called load which is similar to import, but adds some functionality. It takes a single string: def load(s): # Do some stuff return something In order to call this function I have to ty...

Need help building a Calendar UI for Android 2.2. Any suggestions on how to start?

Hi, I am building a Calendar Application for Android OS. I have previously made some Android applications with built-in android widgets such as buttons and spinners etc. Now I want to create an Android Application that displays 4 'tabbed' views of a Calendar (month, week, day & list). I have already built the backend stuff for the appli...