Post Reply 

Use Console as IPython Gimp interpreter?

Aug 4, 2013, 20:21 (This post was last modified: Aug 4, 2013 20:21 by hedgehogrider.)
Post: #1
Use Console as IPython Gimp interpreter?
I don't know about you guys, but I LOVE py-fu and I LOVE ipython. It would be really nice to be able to use them together.

As I have a minimalist command line based Window Manager and I open gimp from another console, it would be great to have the option to just use the cosole I opened gimp with as the interpreter.

If no one knows of a way to configure such a setup, I would definitely be interested in an ipython interpreter plugin for inside of gimp. Some command line option would definitely be an ideal solution, and I'll probably throw out a feature request if nothing like this exists.

Thanks a lot in advance! Smile
Find all posts by this user
Quote this message in a reply
Aug 4, 2013, 20:39
Post: #2
RE: Use Console as IPython Gimp interpreter?
You can try to tweak /usr/lib/gimp/2.0/interpreters/pygimp.interp

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Aug 4, 2013, 21:39 (This post was last modified: Aug 4, 2013 21:45 by hedgehogrider.)
Post: #3
RE: Use Console as IPython Gimp interpreter?
(Aug 4, 2013 20:39)ofnuts Wrote:  You can try to tweak /usr/lib/gimp/2.0/interpreters/pygimp.interp

Any idea how?

I tried to change:
Code:
python=/usr/bin/python2.7
/usr/bin/python=/usr/bin/python2.7
:Python:E::py::python:

To:
Code:
python=/usr/bin/ipython2.7
/usr/bin/ipython=/usr/bin/ipython2.7
:Python:E::py::python:

But it tells me that the plugin /usr/lib/gimp/2.0/plug-ins/python-console.py messes up. Which is strange, as I do not find any references to 'pygimp.interp' within the file...
Find all posts by this user
Quote this message in a reply
Aug 5, 2013, 00:58
Post: #4
RE: Use Console as IPython Gimp interpreter?
I would have tried:

Code:
python=/usr/bin/ipython
/usr/bin/python=/usr/bin/ipython
:Python:E::py::python:

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Aug 5, 2013, 01:12 (This post was last modified: Aug 5, 2013 01:19 by hedgehogrider.)
Post: #5
RE: Use Console as IPython Gimp interpreter?
Same error:
Plug-in crashed: "python-console.py"
(/usr/lib/gimp/2.0/plug-ins/python-console.py)

The dying plug-in may have messed up GIMP's internal state. You may want to save your images and restart GIMP to be on the safe side.


The console spits out:
[TerminalIPythonApp] Bad config encountered during initialization:
[TerminalIPythonApp] Unrecognized flag: '-gimp'
Find all posts by this user
Quote this message in a reply
Aug 5, 2013, 06:46
Post: #6
RE: Use Console as IPython Gimp interpreter?
Well, the Windows version of that file is:
Code:
python=..\Python\pythonw.exe
/usr/bin/python=..\Python\pythonw.exe
:Python:E::py::python:

[Image: 2Tvo0.png]

Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Why isn't GAP installing in Gimp? manimal42 6 994 Apr 9, 2014 00:15
Last Post: aikiwaza
  GIMP batch process script run-time error Paddy Landau 4 111 Apr 8, 2014 22:42
Last Post: ofnuts
  Dialog boxes appear underneath GIMP charlessmall18 3 249 Mar 17, 2014 14:03
Last Post: ofnuts
  Python gimpfu outside of gimp? BilliamShat 2 149 Mar 4, 2014 21:13
Last Post: BilliamShat
  Photoshop actions in GIMP 2.8 ??? jagan 1 200 Mar 3, 2014 13:05
Last Post: rich2005

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS