From 2633af2954362711d42faccabff17ce42f8fab73 Mon Sep 17 00:00:00 2001 From: Andrey Vokin Date: Wed, 31 May 2023 09:55:34 +0200 Subject: [PATCH] DS-4699 Support Image Preview for CV libraries Implemented basic image preview request to Jupyter kernel GitOrigin-RevId: d60e9d72bad7295a3eab1de1f7c113b494b9e38f --- .../com/jetbrains/python/debugger/PyFrameAccessor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/pydevSrc/com/jetbrains/python/debugger/PyFrameAccessor.java b/python/pydevSrc/com/jetbrains/python/debugger/PyFrameAccessor.java index 98533c8bca74..37ceb5310336 100644 --- a/python/pydevSrc/com/jetbrains/python/debugger/PyFrameAccessor.java +++ b/python/pydevSrc/com/jetbrains/python/debugger/PyFrameAccessor.java @@ -101,6 +101,11 @@ public interface PyFrameAccessor { @Nullable String execTableCommand(String command, TableCommandType commandType, @Nullable TableCommandParameters tableCommandParameters) throws PyDebuggerException; + /** + * @return result as a preview image packed into json array. Image can be compressed if necessary. + */ + default String execImageCommand(String command) { return null; } + @Nullable default XCompositeNode getCurrentRootNode() { return null;