Open JoseGuzman opened 9 years ago
Just updating this, as it got posted in a response to our user survey:
1a. You could embed an IPython kernel into your application, and then have a Wx window with a straightforward terminal emulator widget which runs IPython 'console'. That's a terminal mode which talks to a remote kernel, whereas our normal kernel runs in a single process. I appreciate that's a bit ugly, but it should work.
Option 4: Port Stimfit to Qt :-) Only half-kidding here, I'm a bit pessimistic about wxPython's future:
I agree that Wx doesn't seem to be going anywhere fast - although that could be a good thing for a GUI framework. But I get the impression that there's enough stuff running on it that it will be kept working for the foreseeable future.
This link will provide us some information soon ( I hope).
Because IPython dropped wx support on versions 0.11 and above, Stimfit will not build with IPython's backed. Check with your IPython version with ipython --version
According to Fernando Perez, there are a few options:
https://github.com/ipython/ipython/blob/master/docs/examples/lib/ipkernel_wxapp.py https://github.com/ipython/ipython/blob/master/docs/examples/lib/internal_ipkernel.py
Those two files show how you can activate an IPython kernel in your WX application. At that point, the kernel is ready to listen to commands from a Qt console, and you can attach one of the existing Qt consoles, or launch one yourself (also shown there).
The downside of this is that it requires that users have Qt as well. That may not be an issue for some projects, but a showstopper for others.