# Jupyter Notebook Integration

## Installation

To get started, we'll need to install the [Universal Data Tool python module](https://pypi.org/project/universaldatatool/).

```bash
pip install universaldatatool
```

## Creating a Dataset

Creating datasets inside python is really easy!

```python
import universaldatatool as udt

ds = udt.Dataset(
    type="image_segmentation",
    image_paths=["/path/to/birds/good_bird.jpg","/path/to/birds/bird2.jpg"],
    labels=["good bird", "bad bird"]
)

# Opens dataset directly in jupyter notebook
ds.open()
```

![The Universal Data Tool will open inside of your Jupyter Notebook](https://708390366-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MFuZsfsLW71orr4EXRY%2F-MI0fstvNoTk1R2DX52H%2F-MI0qFop7_jrQcZHIAjC%2Fimage.png?alt=media\&token=bd9e868d-0e77-4dbb-8c68-42a3f4455af5)

## Loading a udt.json or udt.csv file

```python
import universaldatatool as udt

ds = udt.load("path/to/dataset.udt.json")

# Opens dataset directly in jupyter notebook
ds.open()
```
