[IPython-User] Wirting Ipython Plugin for Ninja-IDE
MinRK
benjaminrk@gmail....
Sun Oct 16 18:09:23 CDT 2011
On Sun, Oct 16, 2011 at 15:45, Phyo Arkar <phyo.arkarlwin@gmail.com> wrote:
> I tried to add but i having this error
>
>
> Traceback (most recent call last):
> File "/usr/bin/ninja", line 37, in <module>
> ninja_ide.setup_and_run()
> File "/home/v3ss/ninja-ide/ninja_ide/__init__.py", line 36, in
> setup_and_run
> from ninja_ide import core, resources
> File "/home/v3ss/ninja-ide/ninja_ide/core/__init__.py", line 13, in
> <module>
> from ninja_ide.core.core import run_ninja
> File "/home/v3ss/ninja-ide/ninja_ide/core/core.py", line 5, in <module>
> from ninja_ide.gui import ide
> File "/home/v3ss/ninja-ide/ninja_ide/gui/ide.py", line 27, in <module>
> from ninja_ide.core import plugin_services
> File "/home/v3ss/ninja-ide/ninja_ide/core/plugin_services.py", line 12, in
> <module>
> from ninja_ide.gui import actions
> File "/home/v3ss/ninja-ide/ninja_ide/gui/actions.py", line 18, in <module>
> from ninja_ide.tools import locator
> File "/home/v3ss/ninja-ide/ninja_ide/tools/locator.py", line 30, in
> <module>
> from ninja_ide.gui.misc import misc_container
> File "/home/v3ss/ninja-ide/ninja_ide/gui/misc/misc_container.py", line 21,
> in <module>
> from ninja_ide.gui.misc import ipython_widget
> File "/home/v3ss/ninja-ide/ninja_ide/gui/misc/ipython_widget.py", line 3,
> in <module>
> from IPython.frontend.qt.console.qtconsoleapp import IPythonQtConsoleApp
> File
> "/usr/lib64/python2.7/site-packages/IPython/frontend/qt/console/qtconsoleapp.py",
> line 25, in <module>
> from IPython.external.qt import QtGui
> File "/usr/lib64/python2.7/site-packages/IPython/external/qt.py", line 31,
> in <module>
> prepare_pyqt4()
> File "/usr/lib64/python2.7/site-packages/IPython/external/qt.py", line 20,
> in prepare_pyqt4
> sip.setapi('QString', 2)
> ValueError: API 'QString' has already been set to version 1
> It seems that Ninja-IDE set QString to 1.
> Wow ... thats gonna be bad.. Wont be able to implement it i think..
> Can't API be set for each Widget .. it seems a bad design at PyQT part.
Nope, I think API can be set exactly once per runtime environment.
Apps that use v2 are not compatible with those that use v1. Some
tools are written in such a way as to work with both, which is kinder
to fellow developers, but IPython only supports v2 at this point.
-MinRK
> On Sun, Oct 16, 2011 at 5:33 PM, Thomas Kluyver <takowl@gmail.com> wrote:
>>
>> On 16 October 2011 10:18, Phyo Arkar <phyo.arkarlwin@gmail.com> wrote:
>>>
>>> Luckily i am loving ipython qtconsole and i wanna implement it inside a
>>> tab of ninja-ide , is that easy?
>>
>> It should be! The Qt console is designed as a Qt widget that you can
>> embed. I know the Spyder IDE is already working on this for an upcoming
>> version:
>>
>>
>> http://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/ipython.py
>>
>> http://code.google.com/p/spyderlib/source/browse/spyderlib/plugins/ipython.py
>>
>> Other people on this list should be able to give you more information,
>> when their timezones are awake.
>>
>> Thomas
>
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
More information about the IPython-User
mailing list