A GTK Python Console for the GIMP python environment
Project description
First ideas on modify the GIMP Python interpreter to be more interactive.
As for now, code from two sources has been grabbed:
- GIMP's Python Console under GPLv3
- SvenFestersen's GtkPyInterpreter under GPLv3
Update (28/03/21):
-
Huge refactor in original source codes.
-
A namespace python package structure has been implemented, adapted to GIMPs needs.
-
Logic from pure GTK3 is being split from GIMPs logic, then "apps" should have an isolated layer which runs outside GIMP.
-
Running 4 different Python Console approaches only changing a flag, to explore them:
- console.ConsoleDialog.run: The current GIMP python console with the GIMP logic.
- pyconsole.run: Only the widget of the python console of the current GIMP pyhthon console.
- gtkpyinterpreter.run: SvenFestersen's Python Console. Has a problem with a constant
None: None
output. - gtkmatplotlibshell.run: SvenFestersen's Python Console with matplotlib integration!
-
The main problem integrating IPython is that the current approach (by importing it and call
IPython.embed()
) yields to a problem with the parsing of the inputs. For example:
In [1]: import os
File "<ipython-input-1-5c84a8230b9f>", line 1
invalid syntax (<string>, line 1)
^
SyntaxError: invalid syntax
In [2]: a = 10
File "<ipython-input-2-5c84a8230b9f>", line 1
invalid syntax (<string>, line 1)
^
SyntaxError: invalid syntax
In [3]: hola
File "<ipython-input-3-74399d33e912>", line 1
name 'hola' is not defined
^
SyntaxError: invalid syntax
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file gimp-console-0.2.0.tar.gz
.
File metadata
- Download URL: gimp-console-0.2.0.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e64a051f9d93311ab343a0105b15575e6cca76b2d4f5a0a6963087d5422560c |
|
MD5 | 8f1a7e499a67ccd7e4c42771a20dbe54 |
|
BLAKE2b-256 | 73c54daf25275089558bea54493798a99ac813d51608fca7a2252cfd12ba5ba2 |