Page 1
Aside

iPython from Anaconda in PyCharm

Lately I fell in love with Python and its easy capability of interfacing with DLLs. Yet so far I always relied on using MATLAB for generating reports and plots for our papers. My good old friend Dawid pointed out I could just use iPython to do the plotting for me. Removing the middle man (i.e. MATLAB) would also be beneficial since our University’s license will expire in 3 days 🙁

The only issue I’ve had with getting iPython going in PyCharm (my preferred Python IDE) was that it just would not start the Kernel. IPython  natively installs when deploying Anaconda and should just work when making a notebook. But it doesn’t. Here I will go through how I managed to “fix” this and have my notebooks run beautifully in PyCharm.

Continue Reading →

The end
Standard

Model View Controller (MVC) for MATLAB GUIs

The other day I attended a MATLAB training course to make pretty GUIs. It was very interesting, yet the way MathWorks recommended to share data between multiple windows was slightly off-putting for me. In short, they showed all attendees two ways to exchange data. Either have a main windows that holds all data, or the data is stored alongside all windows’ handles (handles are used in MATLAB to access properties of displayed objects). The former works well if there is always an main window open, and I don’t see any inherent problem here. Nonetheless, the latter approach requires duplicate data to be stored, which seems very wasteful, unstable, and difficult to expand. My solution: the Model View Controller (MVC – link). Next I will show you the differences and how the MVC can be programmed.

Continue Reading →

The end
The end