[Libreoffice-bugs] [Bug 132266] Interactive-type macros

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Sep 14 11:52:38 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=132266

--- Comment #2 from Alain Romedenne <alain.romedenne at libreoffice.org> ---
Hi

While I'm not certain I completely understand r.a.'s requirements, let me try
to answer some aspects of these statements.

First and foremost, and for what relates to document, note the following links
detail how to script Python macros in LibreOffice:
- https://help.libreoffice.org/latest/en-US/text/sbasic/python/main0000.html
- https://wiki.documentfoundation.org/Macros/Python_Design_Guide

* as for your first comment, please note that you can customize LibreOffice
menus in order to start LibO Python interactive console, incorporating LibO
bindings in the process. Thus, saving your session is only a matter of
copying/pasting the command history.

* I imagine that Conda/Jupyter can be configured in such a way that libO Python
shell can be chosen as a preferred Python runtime. Such a facility exists in
Geany, PyCharm , Pyzo and are described in the above wiki link. However Python
native shell and LibO interactive console do not extend the exact same way. So
be prepared for experiments and adaptation efforts.    

I hope I clarified some points, and would gladly to read elaborated
descriptions of r.a's current achievements using Conda/Jupyter, Anaconda
Navigator or anything alike.

You should have a glance at APSO extension which provides a remarkable
assistance when scripting Python macros:
-
https://extensions.libreoffice.org/en/extensions/show/apso-alternative-script-organizer-for-python

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200914/a47e7d73/attachment.htm>


More information about the Libreoffice-bugs mailing list