I now have a Python project that is in charge of generating the simulation data and visualizing the simulation and processed data. A C++ console application is already available in my Visual Studio.

The processing sequence is as follows:

  1. Python project generates the raw data into data.txt.
  2. Visual Studio C++ console application takes in data.txt and processes the data, and finally outputs results.txt.
  3. Python project takes in results.txt and visualizes it with matplotlib.

I am now doing it manually, and it works perfectly ok for one run. However, it becomes extremely troublesome when I want to have multiple runs.


  1. How may I integrate them together? Integrate Python project into Visual Studio or integrate C++ console application into Spyder (my Python IDE)?
  2. Currently, I manually enter the debugging parameters in the C++ console application debugging property. How may I make it automatic? i.e. After Python project generates data.txt, the data.txt gets automatically taken in as parameters by the C++ console application?
  • 1
    This doesn't seem specific enough to be answerable. We don't know what "troublesome" means, for one thing. As it is an implementation issue, it probably is better suited for Stack Overflow, but you need to make it specific enough to be answerable. Describe the problem, and include valid code to reproduce it. – Robert Harvey Oct 4 '13 at 3:44
  • @RobertHarvey Thanks for the comment! By troublesome I mean I have to manually change the debug parameters for every next run. Could you please kindly help move it to SO? :) Thanks! – Sibbs Gambling Oct 4 '13 at 4:25
  • @perfectionm1ng - can you edit the question to make your problem clear then it can be migrated to Stack Overflow. As it stands now it probably won't get an answer and might even get closed quite quickly. – ChrisF Oct 4 '13 at 8:21
  • @ChrisF Thanks for the kind advice! But I really have no idea how can I "make it clean". I have two big projects and I don't how can I condense them into very clear codes. – Sibbs Gambling Oct 4 '13 at 8:38
  • @ChrisF: I find the question not very good, but clear enough to answer. Would you be please so kind and migrate it. – Jan Hudec Oct 4 '13 at 9:40

IDE stands for Indegrated Development Environment. It is not concerned with running your application except for debugging. There is no point integrating the IDEs, the user won't have them installed.

What you should do is make of of the applications run the other, directly, not involving either IDE.

You can execute external process from Python using the subprocess module (python3 doc).

You can execute external process from C++ using the system function (windows doc) (platform independent, not very powerful, but should be enough for your purpose) or using the windows-specific CreateProcess interface (on POSIX, you use the exec interface), but I don't think you need this direction just now.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.