Skip to content

Commit da4fe60

Browse files
author
Waidhoferj
committed
updated readme
1 parent 4cf33fc commit da4fe60

File tree

2 files changed

+44
-6
lines changed

2 files changed

+44
-6
lines changed

README.md

Lines changed: 44 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
# Jupyter Bifrost
12

2-
# jupyter_bifrost
3+
![Jupyter Bifrost Workflow](docs/resources/ChartSelection.gif)
4+
A Jupyter Widget for Interactive Data Visualization. Bifrost provides useful chart recommendations and easy integration with Pandas DataFrames. It also provides a variety of analysis tools:
35

4-
[![Build Status](https://travis-ci.org//jupyter_bifrost.svg?branch=master)](https://travis-ci.org//jupyter_bifrost)
5-
[![codecov](https://codecov.io/gh//jupyter_bifrost/branch/master/graph/badge.svg)](https://codecov.io/gh//jupyter_bifrost)
6+
- Chart history log for keeping track of your data analysis.
7+
- Targeted graph suggestions to drive further data exploration.
8+
- Interactive filters for quantitative and categorical fields.
9+
- Aggregations and binning for axis encodings.
10+
- An expressive Python API
611

12+
The extension allows data scientists to build familiarity with a dataset without sacrificing the reproducibility of code. Changes made in the Bifrost GUI are automatically translated into Pandas Queries, allowing developers to jump back into scripting whenever it is most convenient.
713

8-
A Jupyter Widget for Interactive Data Visualization
14+
## Getting Started
915

10-
## Installation
16+
### Installation
1117

1218
You can install using `pip`:
1319

@@ -17,19 +23,48 @@ pip install jupyter_bifrost
1723

1824
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable
1925
the nbextension:
26+
2027
```bash
2128
jupyter nbextension enable --py [--sys-prefix|--user|--system] jupyter_bifrost
2229
```
2330

31+
### Using the Extension
32+
33+
Jupyter Bifrost is intended to be used in Jupyter Notebooks in JupyterLab. Start by importing the package:
34+
35+
```python
36+
from jupyter_bifrost import Chart
37+
```
38+
39+
Then instantiate the chart object with a dataset:
40+
41+
```python
42+
chart = Chart("<my-dataset>.csv")
43+
#or
44+
df = pd.DataFrame()
45+
chart = Chart(df)
46+
```
47+
48+
Finally, plot the dataset to open up the Bifrost GUI:
49+
50+
```python
51+
res = chart.plot()
52+
# the `res` DataFrame will always stay up to date with the filters and aggregations applied in the GUI
53+
```
54+
55+
For additional help with the extension, take a look at the wiki, or the help menu located in the menu bar of the Bifrost GUI.
56+
2457
## Development Installation
2558

2659
Create a dev environment:
60+
2761
```bash
2862
conda create -n jupyter_bifrost-dev -c conda-forge nodejs yarn python jupyterlab
2963
conda activate jupyter_bifrost-dev
3064
```
3165

3266
Install the python. This will also build the TS package.
67+
3368
```bash
3469
pip install -e ".[test, examples]"
3570
```
@@ -55,18 +90,21 @@ you might also need another flag instead of `--sys-prefix`, but we won't cover t
5590
of those flags here.
5691

5792
### How to see your changes
93+
5894
#### Typescript:
95+
5996
If you use JupyterLab to develop then you can watch the source directory and run JupyterLab at the same time in different
6097
terminals to watch for changes in the extension's source and automatically rebuild the widget.
6198

6299
```bash
63100
# Watch the source directory in one terminal, automatically rebuilding when needed
64-
yarn run watch
101+
jlpm watch
65102
# Run JupyterLab in another terminal
66103
jupyter lab
67104
```
68105

69106
After a change wait for the build to finish and then refresh your browser and the changes should take effect.
70107

71108
#### Python:
109+
72110
If you make a change to the python code then you will need to restart the notebook kernel to have it take effect.

docs/resources/ChartSelection.gif

9.4 MB
Loading

0 commit comments

Comments
 (0)