Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add interactive IPython console as a dock widget. #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hacst
Copy link
Member

@hacst hacst commented Nov 16, 2014

This pull request contains initial work for adding an interactive ipython console to LogikSim as a dockwidget.
python_console

While the functionality works great _it is not ready to merge yet_ and is meant as a basis for future work. Unfortunately cx_Freeze doesn't seem to handle IPython correctly which results in the generated exe's not being executable. More concretely IPythons detection of which Qt bindings are installed seems to be broken from the frozen exe (qt_loaders.py) so even though pyside is present and imported the detection fails. Likely this is an issue with the imp.find_module calls in qt_loaders.py of IPython:

    import imp
    try:
        #importing top level PyQt4/PySide module is ok...
        mod = __import__(module_name)
        #...importing submodules is not
        imp.find_module('QtCore', mod.__path__)
        imp.find_module('QtGui', mod.__path__)
        imp.find_module('QtSvg', mod.__path__)

Besides these very basic freezing issues IPython might also confuse automatic dependency detection. For example we would like to not have to ship matplotlib just to get a nice python console.

Turns out IPython makes embedding it into Qt
applications trivial. Since everything is better
with an IPython console this patch adds a
console dock widget to LogikSim.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant