Skip to main content

View(your_data) 🧐 Supports numpy, pandas, torch, jax, tinygrad...

Project description

viiew 🧐

pip install viiew to quickly view(your_data) in the terminal!

your_data can be a

As shown in the GIF, just call view...

import numpy as np
from viiew import view

your_data = np.arange(1024).reshape(32, 32)
view(your_data)

...and e.g. press s to scroll through your_data (see all keybindings)!

view calls view_array and pressing s adds 1 to its row0 argument.

Click here, to read about all arguments of `view` and `view_array` 📑

view and view_array take the arguments

  • data: The data object to view (e.g., numpy array, pandas DataFrame, etc.)
  • row0: Starting row index (default: 0)
  • col0: Starting column index (default: 0)
  • nrows: Number of rows to display (default: 20)
  • ncols: Number of columns to display (default: 10)
  • cidx: Current column index for sorting (default: None)
  • order: Sorting order (0: none, 1: ascending, -1: descending) (default: 0)
  • color: Whether to use color coding for values (default: True)
  • is_table: Whether to treat the data as a table (auto-detected for pandas DataFrames) (default: None)
  • expand: Expansion level for columns (default: 0)
  • nchars: Number of characters per cell (default: 7)
  • end: String to append after each cell (default: ' ')

Keybindings

  • w: Move up one row
  • s: Move down one row
  • a: Move left one column
  • d: Move right one column
  • o: Cycle through sorting orders (ascending, descending, none)
  • t: Toggle table mode (column-wise colormap)
  • c: Toggle color display
  • r: Decrease number of rows
  • R: Increase number of rows
  • c: Decrease number of columns
  • C: Increase number of columns
  • e: Decrease column expansion
  • E: Increase column expansion
  • n: Decrease number of characters per cell
  • N: Increase number of characters per cell
  • W: Move up 10 rows
  • S: Move down 10 rows
  • A: Move left 10 columns
  • D: Move right 10 columns
  • q: Quit the viewer

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

viiew-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

viiew-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file viiew-0.1.0.tar.gz.

File metadata

  • Download URL: viiew-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.9 Linux/6.14.0-24-generic

File hashes

Hashes for viiew-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8226c82ffeb7c7dab69c910b6361dc026c8b2d30f5814f509a68a0d27ef3d46d
MD5 96b72de0728c83d62de39ac98520da43
BLAKE2b-256 e14831f8915593c02b1e518aa30e5b443013d4bf58e643fd856c5f3881c24cd4

See more details on using hashes here.

File details

Details for the file viiew-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: viiew-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.12.9 Linux/6.14.0-24-generic

File hashes

Hashes for viiew-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2774a293d3c3d51b5f54b39dcc86019298a37414f241d40971d5c28e1079cef1
MD5 b8d15d141ae038c33493128a8357165b
BLAKE2b-256 6233d4981063a32bef79f12ea12e3a92b28b30fbd5531127cc27fa15ab3f6946

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