8.2.12 • Published 2 years ago

@nteract/data-explorer v8.2.12

Weekly downloads
1,827
License
BSD-3-Clause
Repository
github
Last release
2 years ago

Binder

nteract Data Explorer

Data Explorer Examples

Read @emeek's post on designing the data explorer.

Using the Data Explorer

yarn add @nteract/data-explorer

Install react and styled-components if you are not already using them.

yarn add react styled-components

The data prop must be a tabular data resource application/vnd.dataresource+json

// Default import complete with right side toolbar
import DataExplorer from "@nteract/data-explorer";

<DataExplorer data={data} />;

Or, with custom Toolbar position:

// Individual components as named imports
import { DataExplorer, Toolbar, Viz } from "@nteract/data-explorer";

<DataExplorer data={data}>
  <Toolbar />
  <Viz />
</DataExplorer>;

// Toolbar is optional
<DataExplorer data={data}>
  <Viz />
</DataExplorer>;

Hacking on the nteract Data Explorer

For expedited development, we recommend using the Jupyter Extension to contribute.

Note: the desktop app can be used instead, but you'll have to manually reload to see changes

Installation

1. Setup the monorepo

Navigate to the base directory of the repo and install all dependencies

yarn

2. Setup Jupyter Extension

Note: this requires Python >= 3.6

Now, install the Python package

cd applications/jupyter-extension
pip install -e .
jupyter serverextension enable nteract_on_jupyter

3. Build JS assets and run a Jupyter server with hot reloading

First we need to run the webpack server to live reload javascript and html assets. Anywhere in the nteract repository, run

npx lerna run hot --scope nteract-on-jupyter --stream

In another terminal, go to the directory that you want to run notebooks from and run

jupyter nteract --NteractConfig.asset_url="http://localhost:8080/"

The --NteractConfig.asset_url flag tells the Jupyter server where the webpack server will be serving the assets.

Once the assets have been built, you won't need to refresh the page, but you may need to manually refresh the page if it loads before the assets are built.

4. Initialize data explorer in the notebook

In the notebook launched from step 3, run the following code in a cell before anything else :arrow_down:

import pandas as pd
pd.options.display.html.table_schema = True
pd.options.display.max_rows = None

Now you are ready to contribute :tada:

8.2.13-next.0

2 years ago

8.2.12

3 years ago

8.2.11

3 years ago

8.2.10

3 years ago

8.2.9

4 years ago

8.2.8

4 years ago

8.2.7

4 years ago

8.2.6

4 years ago

8.2.5

4 years ago

8.2.4

4 years ago

8.2.3

4 years ago

8.2.2

4 years ago

8.2.1

4 years ago

8.2.0

4 years ago

8.1.1

4 years ago

8.1.0

4 years ago

8.0.3

4 years ago

8.0.2

4 years ago

8.0.1

4 years ago

8.0.0

4 years ago

7.2.3-alpha.0

4 years ago

7.2.2-alpha.0

4 years ago

7.2.1

4 years ago

7.2.1-alpha.0

4 years ago

7.2.0-alpha.0

4 years ago

7.1.6

4 years ago

7.1.5

5 years ago

7.1.4

5 years ago

7.1.3

5 years ago

7.1.2

5 years ago

7.1.1

5 years ago

7.1.0

5 years ago

7.0.1

5 years ago

7.0.0

5 years ago

6.2.0

5 years ago

6.1.3

5 years ago

6.1.2

5 years ago

6.1.1

5 years ago

6.1.0

5 years ago

6.0.6

5 years ago

6.0.5

5 years ago

6.0.4

5 years ago

6.0.3

5 years ago

6.0.2

5 years ago

6.0.1

5 years ago

6.0.0

5 years ago