logo full 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.&

Base Calc Draw Impress Macro Presentations Writer
Download latest

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

Release Description Compatibility Operating Systems License Release notes   1.2.2 Better install error handling during install. 7.0 Linux, Windows, macOS MIT

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 MIT

Support 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 MIT

Updates for better support on Mac and AppImage on Linux.

Download 1.0.0 Initial Release 7.0 Linux, Windows, macOS MIT

Initial Release

Download
Show more

Other Extensions

OOO Development Tools (OooDev)

This project brings to power of OOO Development Tools (OooDev) to LibreOffice as an extension.

12-2023

1610

Not rated yet

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.&

12-2023

563

Not rated yet

Include Python Path for LibreOffice

Give the ability to include external python paths in LibreOffice. Making other python packages available in Python macros and scripts.

11-2023

431

Not rated yet

Pandas for LibreOffice

Pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.

12-2023

487

Not rated yet

Sqlite for LibreOffice on Windows

Adds sqlite3 support to LibreOffice on Windows.

11-2023

879

Not rated yet

Feedback

☆ ☆ ☆ ☆ ☆

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