Scripton / Docs

Overview

Scripton includes a Python library that can be used for tasks like plotting, visualizing images and matrices, drawing, and creating interactive user interfaces.

Here's a quick example:

from scripton.lyra import Plot import numpy as np # Evenly spaced values between 0 and 2π x = np.linspace(0, 2 * np.pi) # Plot sin(x) Plot({'x': x, 'y': np.sin(x)})

The scripton library is automatically available to your Python code when executing from the Scripton IDE — no installation needed.

Toolkits

Scripton's Python library is made up of a collection of toolkits. For instance, the lyra toolkit used in the example above provides powerful plotting features. You can expect this collection of toolkits to grow and refine over time. The current collection includes —

  1. Show: A handy function for quickly displaying images and colormapped matrices.

  2. Canvas: 2D immediate mode graphics library

  3. Lyra: A plotting library based on the Plotly JavaScript library

  4. Orion: Plotting library (powered by the Observable Plot JavaScript library under the hood)

  5. UI: For interactive user interfaces.