Numpy for LibreOffice
Numpy is The fundamental package for scientific computing with Python.This is a LibreOffice extension that allows you to use Numpy in LibreOffice python macros and scripts.&
latest release: 2023-12-04 20:21:51
Description
Numpy is The fundamental package for scientific computing with Python.
This is a LibreOffice extension that allows you to use Numpy in LibreOffice python macros and scripts.
This extesnion automaticlly installs OOO Development Tools (OooDev). This means if you install this extension will not need to install OOO Development Tools Extension.
Example
# using OooDev to for easy access to LibreOffice from ooodev.dialog.msgbox import MsgBox from ooodev.macro.macro_loader import MacroLoader import numpy as np def np_ex01(*args): with MacroLoader(): # using MacroLoader so we can use OooDev in macros x = np.arange(15, dtype=np.int64).reshape(3, 5) # Create a 2-D array, set every second element in # some rows and find max per row: x[1:, ::2] = -99 _ = MsgBox.msgbox(str(x), "Numpy 01") # array([[ 0, 1, 2, 3, 4], # [-99, 6, -99, 8, -99], # [-99, 11, -99, 13, -99]]) _ = MsgBox.msgbox(str(x.max(axis=1)).center(50), "x.max(axis=1)") # array([ 4, 8, 13]) def np_ex02(*args): with MacroLoader(): # using MacroLoader so we can use OooDev in macros. # Generate normally distributed random numbers: rng = np.random.default_rng() samples = rng.normal(size=2500) _ = MsgBox.msgbox(str(samples), "Numpy 02") g_exportedScripts = (np_ex01, np_ex02)
Homepage: https://github.com/Amourspirit/python-libreoffice-numpy-ext
Repository: https://github.com/Amourspirit/python-libreoffice-numpy-ext
Release List
Better install error handling during install.
Update to OooDev version 0.15.0
Download 1.2.0 Support for LibreOffice 32 and 64 bit versions for Windows 7.0 Linux, Windows, macOS MITSupport for LibreOffice 32 and 64 bit versions for Windows. If you running both 32 bit and 64 bint versions of LibreOffice on Windows now there will be no binary conflict and both version will work.
Download 1.1.1 Update for Mac 7.0 Linux, Windows, macOS MITUpdates for better support on Mac and AppImage on Linux.
Download 1.0.0 Initial Release 7.0 Linux, Windows, macOS MITInitial Release
Download
☆ ☆ ☆ ☆ ☆
Post your review
You cannot post reviews until you have logged in. Login Here.
Reviews
No one has commented on this page yet.
RSS feed for reviews on this page | RSS feed for all reviews