Skip to main content

A minimalist line plotting package for live updates from jupyter notebooks.

Project description

lineplot

A minimalist line plotting package for live updates from jupyter notebooks. Works on google colab.

Installation

pip install lineplot

Example usage

from lineplot import LinePlot
import numpy as np
import time

plot = LinePlot()
for i in range(100):
    plot.add(loss=1 / (i + 1), acc=1 - np.random.rand() / (i + 1))
    time.sleep(0.25)

Documentation

First, instanciating a line plot widget:

plot = lineplot.LinePlot(
  width="50%", 
  height="auto", 
  x_ticks=16, 
  y_ticks=5, 
  colors=['blue', 'green', 'red', 'gold', 'magenta', 'cyan', 'purple', 'orange', 'brown']
)

Width and height are expressed in CSS units. Colors are looped if there are more datasets than colors.

Then, values for different metrics can be added progressively. The plot updates automatically.

plot.add(name=value, name2=value2...)

You can use **{"name with spaces and special characters": value} to use more exotic data serie names.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lineplot-0.2.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lineplot-0.2.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file lineplot-0.2.2.tar.gz.

File metadata

  • Download URL: lineplot-0.2.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lineplot-0.2.2.tar.gz
Algorithm Hash digest
SHA256 2ce01589a8f252e8f867c08b32d0fbb70bcc636d6a67d6ad64ce984a54ef4731
MD5 2a11eb6540d5e54edf372a18155fae90
BLAKE2b-256 0014acce9fe0b047525a8dba1918663f5029972a2e2144b6be366f61c7ebb00c

See more details on using hashes here.

File details

Details for the file lineplot-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: lineplot-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lineplot-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b527f7a0ae2508e677509d124696cd23725532b4390993ab7f352ab6223eac9
MD5 dac0e1a6a36efb89d35354b6b580effd
BLAKE2b-256 7e93940522fe728c2ff0c39d8778a9b2f25d98382a94443fe23af38906bb14c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page