# Quick Start

## :rocket: DQN On CartPole

This quick demo will test that the installation works. We will run DQN on the CartPole environment. For now, don't worry about the details of the Python command, as we will walk through them in a [later section](https://slm-lab.gitbook.io/slm-lab/master/using-slm-lab/slm-lab-command).

```
conda activate lab
python run_lab.py slm_lab/spec/demo.json dqn_cartpole dev
```

This will run a session that trains a DQN agent on the CartPole-v0 environment. Since the command above specifies **dev** mode, it enables verbose logging and environment rendering, which should be similar to the following screenshot:

![](https://306139625-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LterKThgiKKTvsbx4WI%2F-LtetKRiyuf_T0VsPEXO%2F-Ltf-mfmQ_2A9UYZjlNv%2Fdqn_cartpole_demo.png?alt=media\&token=a77f44c6-1645-4885-948e-b58697d6cdec)

If you let the training session run for a few minutes, you should see the CartPole getting balanced for a longer period of time. Correspondingly, the `total_reward_ma` should increase.

{% hint style="success" %}
If this quick start works, then SLM Lab is ready for use.
{% endhint %}

{% hint style="info" %}
If you encounter an issue, consult the [**Help**](https://slm-lab.gitbook.io/slm-lab/master/resources/help) page.
{% endhint %}
