#plot #jupyter #evcxr #vega

showata

A library of to show data (in browser, evcxr_jupyter) as table, chart

5 unstable releases

0.3.2 Mar 12, 2021
0.3.1 Mar 12, 2021
0.3.0 Mar 12, 2021
0.2.0 Nov 12, 2019
0.1.0 Jun 10, 2019

#249 in Visualization

Download history 26/week @ 2024-01-29 23/week @ 2024-02-05 8/week @ 2024-02-12 15/week @ 2024-02-19 33/week @ 2024-02-26 21/week @ 2024-03-04 50/week @ 2024-03-11 18/week @ 2024-03-18

123 downloads per month
Used in 3 crates

Apache-2.0

91KB
354 lines

showata

license version Release Doc

Actions Status

A library of to show data (in browser, evcxr_jupyter) as table, chart....

The crate provides display for:

  • image
  • vector and slice (as table)
  • ndarray's Array (as table)
  • nalgebra's matrix (as table)

Feedbacks (comments, tickets, PR,...) are welcomes.

Usages

Inside Jupyter

Inside your jupyter (rust) notebook:

:dep showata = { version = "0.3", features=["show_ndarray"]}
:dep ndarray = "0.14"

use showata::Showable;
use ndarray::Array2;

let data: Array2 = Array2::<f64>::zeros((3, 4));
data.show()

Inside Editor

Inside your favorite editor/IDE:

use showata::Showable;
use ndarray::Array2;

let data = Array2::<f64>::zeros((3, 4));
data.show().unwrap();
# By default the data will be shown inside your web browser.
cargo run

# Show nothing
SHOWATA_MEDIUM=Noop cargo run

Show Chart

see vega_lite_3

Notes

Currently the project groups showers as features instead of packages. But it could change in the futures if use of package is more useful (than just "it's the recommended way in the cargo doc").

Why features (vs packages):

  • less lines of code to insert into a notebook (but longer)
  • ability to share a traitand provide impl for external crates

Dependencies

~0.3–4MB
~34K SLoC