Skip to main content

suraida is a lightweight package facilitating interactive plotting similar to Mathematica's Manipulate. Do you want to visualize a function and "play" with its parameters? Jump into a jupyter notebook, import suraida and use its Manipulate class like this:

import suraida as sr
import numpy as np

def func(z, amplitude, omega, phase):
    return amplitude * np.sin(omega * z + phase)

sr.Manipulate(func,                          # the numerical function we wish to plot and manipulate parameters via sliders
              var_def=["z", 0, 7, 0.1],      # definition of the variable against which to plot `func`, specifying min, max and step
              param_defs=[
                  ["phase", [i*np.pi/5 for i in range(5)]],      # phase as list of allowed values
                  ["amplitude", 0, 2, 0.1],                # amplitude with min, max and step, default initial value is midpoint between min and max
                  ["omega", 0, 4, 0.1, 1.0]                # omega with min, max, step, ini
              ]
             )

Metadata

Release files for suraida 1.0.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 suraida 1.0.0
File Size Uploaded
suraida-1.0.0.tar.gz 3.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for suraida 1.0.0
File Interpreter ABI Platform
suraida-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / suraida-1.0.0.tar.gz

Download URL suraida-1.0.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d9e9532b7ab6a137ca1e3b67a1b74f273fdc338cdc5483f6d71f96bef55ca720
BLAKE2b-256 checksum
How to use checksums
128b44357b668bce5722506c100c02cb0ada92bbbb2bd684273c72ccf4f58647
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / suraida-1.0.0-py3-none-any.whl

Download URL suraida-1.0.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64aeb73a6a6ae5da071161b80b02fc98c99bce60937de97619ae5d95607ab646
BLAKE2b-256 checksum
How to use checksums
80c1a2096e4af47740a86395a954a5ee59a58874d7f3365abe6249d9f15c78cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

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