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
  Windows 8, GIMP 2.8.10, crashes opening files or on new but will open by itself. Coanunn 4 108 Jul 29, 2014 13:57
Last Post: Coanunn
Sad Gimp stops loading at Tool Presets Wing 44 1,797 Jul 24, 2014 15:36
Last Post: iForStyle007
  Using OpenCL in Gimp Eric 5 292 Jul 7, 2014 15:54
Last Post: ofnuts
  How do i get resynthesizer for gimp 2.8 Todd500 4 4,580 May 30, 2014 07:25
Last Post: rich2005
  Getting Layer Effects on GIMP 2.8 for Mac Q A 4 604 May 28, 2014 23:58
Last Post: Esper

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS