https://github.com/codingfisch/viiew
View(your_data) 🧐 Supports numpy, pandas, torch, jax, tinygrad...
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (9.2%) to scientific vocabulary
Keywords
jax
numpy
pandas
python
terminal
tinygrad
torch
tui
viewer
Last synced: 5 months ago
·
JSON representation
Repository
View(your_data) 🧐 Supports numpy, pandas, torch, jax, tinygrad...
Basic Info
Statistics
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
jax
numpy
pandas
python
terminal
tinygrad
torch
tui
viewer
Created 8 months ago
· Last pushed 7 months ago
https://github.com/codingfisch/viiew/blob/main/
# viiew `pip install viiew` to quickly `view(your_data)` in the terminal!`your_data` can be a - 2D [NumPy](https://github.com/numpy/numpy) array - [pandas](https://github.com/pandas-dev/pandas) DataFrame - 2D [PyTorch](https://github.com/pytorch/pytorch) Tensor - 2D [jax](https://github.com/jax-ml/jax) array - 2D [tinygrad](https://github.com/tinygrad/tinygrad) Tensor - list of lists As shown in the GIF, just call `view`... ```python import numpy as np from viiew import view x = np.arange(256).reshape(16, 16) view(x) ``` ...and e.g. press `s` to scroll through `x` (see [**all keybindings**](https://github.com/codingfisch/viiew?tab=readme-ov-file#keybindings))! `view` calls `view_array` and pressing `s` adds 1 to its `row0` argument.
## 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 viewerClick here, to read about all arguments
`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: ' ')
Owner
- Login: codingfisch
- Kind: user
- Repositories: 1
- Profile: https://github.com/codingfisch
GitHub Events
Total
- Watch event: 1
- Push event: 11
- Create event: 2
Last Year
- Watch event: 1
- Push event: 11
- Create event: 2
Committers
Last synced: 7 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| lfisch | q****3@g****t | 15 |
Committer Domains (Top 20 + Academic)
gmx.net: 1
Issues and Pull Requests
Last synced: 6 months ago
Packages
- Total packages: 1
-
Total downloads:
- pypi 21 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
pypi.org: viiew
View(your_data) 🧐 Supports numpy, pandas, torch, jax, tinygrad...
- Homepage: https://github.com/codingfisch/viiew
- Documentation: https://viiew.readthedocs.io/
- License: MIT
-
Latest release: 0.1.0
published 7 months ago
Rankings
Dependent packages count: 9.0%
Average: 29.8%
Dependent repos count: 50.6%
Maintainers (1)
Last synced:
6 months ago
Dependencies
pyproject.toml
pypi
- python ^3.9