cillow.prebuilt_patches
patch_stdout_stderr_write
¶
Patch the write
method of sys.stdout
and sys.stderr
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback
|
Callable[[Stream], Any]
|
The callback to process the string content. |
required |
Source code in cillow/patch/prebuilt.py
patch_matplotlib_pyplot_show
¶
Patch the matplotlib.pyplot.show
function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback
|
Callable[[ByteStream], Any]
|
The callback to process the figure image bytes. |
required |
Source code in cillow/patch/prebuilt.py
patch_pillow_show
¶
Patch the PIL.Image.show
method.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
callback
|
Callable[[ByteStream], Any]
|
The callback to process the image bytes. |
required |