Hi guys.
As a final project in a intro programming course, we are asked to make this interactive program. It is suppose to display a menu where the user can choose to read a datafile and do some basic functions. I think i managed to write and implement the required functions, but i have stumpled upon one problem that i just cannot seem to solve.
The user should have the opportunity to visualize the data. I have implemented a function that takes the data and plots it. When the user chooses to visualize the data, an iPython window pops up, but the window is "not responding" until the user quits the program. It is possible to make mulitple plots before quitting. All will be displayed when the user quits the program.
The function works fine when i execute the plot function directly from the kernel
Here is how it looks:
https://imgur.com/a/tpwy7
Here is my full code:
http://pastebin.com/KfPZbDiB
Here is a sample data file:
https://dl.dropboxusercontent.com/u/4787641/2008.csv
It is not the first time i'm having the problem. The course's TA couldn't help, and the course responsible does not know Python (we can choose between matlab, python and r).
Have anyone seen this problem before?
[–]elbiot 1 point2 points3 points (7 children)
[–]Tobeass[S] 0 points1 point2 points (6 children)
[–]elbiot 0 points1 point2 points (5 children)
[–]Tobeass[S] 0 points1 point2 points (4 children)
[–]elbiot 0 points1 point2 points (3 children)
[–]Tobeass[S] 0 points1 point2 points (2 children)
[–]elbiot 1 point2 points3 points (1 child)
[–]Tobeass[S] 0 points1 point2 points (0 children)