# Running Lightning without a server

## Setup

In [1]:
from lightning import Lightning

from numpy import random


## Start local mode¶

Lightning was designed as a API-based visualization server, to which data is posted, and from which visualizations are returned. However, there are many use cases where operating without a server is desirable. For example, when doing data analysis locally, or when we're using notebooks like Jupyter.

For this use case, Lightning offers a "local" mode that doesn't require a server, or even internet access. This is a particularly easy way to get started with Lightning because it only requires a client installation! Once you've installed the Python client with pip, all you need to do is set local mode to true.

In [2]:
lgn = Lightning(ipython=True, local=True)

Lightning initialized