logo full Python Numpy Extension 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: 2024-03-21 14:22:45

Description

Example Usage:

 

# using OooDev to for easy access to LibreOffice
from __future__ import annotations
from ooodev.loader import Lo

try:
    import numpy as np  # type: ignore
except ImportError:
    raise ImportError("The Numpy Extension must be installed before running this macro!")


def np_ex01(*args):
    x = np.arange(15, dtype=np.int64).reshape(3, 5)
    x[1:, ::2] = -99
    _ = Lo.current_doc.msgbox(str(x), "Numpy 01")

    _ = Lo.current_doc.msgbox(str(x.max(axis=1)).center(50), "x.max(axis=1)")

def np_ex02(*args):
    # Generate normally distributed random numbers:
    rng = np.random.default_rng()
    samples = rng.normal(size=2500)
    _ = Lo.current_doc.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.5 1.2.5 update 7.0 Linux, Windows, macOS MIT

Update OooDev and Example.

Download 1.2.4 1.2.4 Update 7.0 Linux, Windows, macOS MIT

Update for flatpak install.

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

05-2024

2986

Not rated yet

Python Numpy Extension 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.&

04-2024

1385

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.

05-2024

1306

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.

04-2024

1463

★ ★ ★ ★ ★

Sqlite for LibreOffice on Windows

Adds sqlite3 support to LibreOffice on Windows.

04-2024

1895

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