Skip to main content

sos-lua

SoS Notebook extension for the Lua programming language.

Installation

pip install sos-lua

You will also need a Lua Jupyter kernel installed. This module supports:

  • ILua (pip install ilua) - kernel name lua
  • xeus-lua (conda install -c conda-forge xeus-lua) - kernel name xlua

Data Exchange

This module supports exchanging the following data types between SoS (Python) and Lua:

Python Lua
None nil
bool boolean
int, float number
str string
list, tuple sequential table {1, 2, 3}
dict keyed table {a=1, b=2}
set sequential table
numpy.ndarray nested table
pandas.DataFrame table of column tables

Nested structures (tables within tables) are supported in both directions.

Usage

In a SoS notebook, use Lua cells and exchange variables with %get and %put:

# In a SoS cell
data = [1, 2, 3]

# In a Lua cell
%get data
print(data[1])  -- prints 1

# Transfer back
result = {sum = 6, count = 3}
%put result

Metadata

Release files for sos-lua 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sos-lua 0.1.0
File Size Uploaded
sos_lua-0.1.0.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sos-lua 0.1.0
File Interpreter ABI Platform
sos_lua-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.8 kB

Release files / sos_lua-0.1.0.tar.gz

Download URL sos_lua-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5827b01b61c2682aa62c25b65449bf56c77f1ad35b2567694b3792c16127b456
BLAKE2b-256 checksum
How to use checksums
3a12172983a7ad405ea8aa95a16c851c9097ff11603a627c392d2dbb95e0e3e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / sos_lua-0.1.0-py3-none-any.whl

Download URL sos_lua-0.1.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
568f1558030eebead86faa731138c85b44e022e9daac5379b9d86ce1423f2a99
BLAKE2b-256 checksum
How to use checksums
8ea3a8d9f7eb2c2e20c31dec5999eb3df2856d575092045812b0c12a68be923e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page