---
title: "Getting Started"
description: "Learn how to create and manage a jupyter notebook in QuantConnect."
canonical: https://www.quantconnect.com/docs/v2/research-environment/key-concepts/getting-started
markdown: https://www.quantconnect.com/docs/v2/research-environment/key-concepts/getting-started.md
language: python
source: https://github.com/QuantConnect/Documentation/tree/master/04%20Research%20Environment/01%20Key%20Concepts/01%20Getting%20Started
modified: 2026-10-29
index: https://www.quantconnect.com/llms.txt
---

# Getting Started

[Documentation](https://www.quantconnect.com/docs/v2.md) > [Research Environment](https://www.quantconnect.com/docs/v2/research-environment.md) > Key Concepts > Getting Started

> Code examples are shown in Python. Append `?lang=csharp` to this URL for the C# version of this page.

![Running a jupyter notebook cell](https://cdn.quantconnect.com/i/tu/research-env-getting-started.gif)

## Introduction

The Research Environment is a [Jupyter notebook](https://jupyter-notebook.readthedocs.io/en/stable/notebook.html)-based, interactive commandline environment where you can access our data through the `QuantBook` class. The environment supports both Python and C#. If you use Python, you can [import code from the code files in your project into the Research Environment](https://www.quantconnect.com/docs/v2/research-environment/key-concepts/research-engine.md#05-Import-Project-Code) to aid development.

Before you run backtests, we recommend testing your hypothesis in the Research Environment. It's easier to perform data analysis and [produce plots in the Research Environment](https://www.quantconnect.com/docs/v2/research-environment/charting.md) than in a backtest.

Before backtesting or live trading with machine learning models, you may find it beneficial to train them in the Research Environment, save them in the Object Store, and then load them from the Object Store into the backtesting and live trading environment

In the Research Environment, you can also use the QuantConnect API to [import your backtest results](https://www.quantconnect.com/docs/v2/research-environment/meta-analysis/backtest-analysis.md) for further analysis.

## Example

The following snippet demonstrates how to use the Research Environment to plot the price and Bollinger Bands of the S&P 500 index ETF, SPY:

```python
# Create a QuantBook
qb = QuantBook()

# Add an asset.
symbol = qb.add_equity("SPY").symbol

# Request some historical data.
history = qb.history(symbol, 360, Resolution.DAILY)

# Calculate the Bollinger Bands.
bbdf = qb.indicator_history(BollingerBands(30, 2), symbol, 360, Resolution.DAILY).data_frame

# Plot the data
bbdf[['price', 'lowerband', 'middleband', 'upperband']].plot();
```

![Bollinger Bands plotting in research environment](https://cdn.quantconnect.com/i/tu/research-env-python-demo.png)

## Open Notebooks

The process to open notebooks depends on if you use the [Algorithm Lab](https://www.quantconnect.com/docs/v2/cloud-platform/research/getting-started.md#03-Open-Notebooks), [Local Platform](https://www.quantconnect.com/docs/v2/local-platform/research/getting-started.md#03-Open-Notebooks), or the [CLI](https://www.quantconnect.com/docs/v2/lean-cli/research.md).

## Run Notebook Cells

Notebooks are a collection of cells where you can write code snippets or MarkDown. To execute a cell, press **Shift+Enter**.

![Python jupyter notebook interface](https://cdn.quantconnect.com/i/tu/notebook-cells-py.jpg)

The following describes some helpful keyboard shortcuts to speed up your research:

| Keyboard Shortcut | Description |
| --- | --- |
| **Shift+Enter** | Run the selected cell. |
| **a** | Insert a cell above the selected cell. |
| **b** | Insert a cell below the selected cell. |
| **x** | Cut the selected cell. |
| **v** | Paste the copied or cut cell. |
| **z** | Undo cell actions. |

## Stop Nodes

The process to stop Research Environment nodes depends on if you use the [Algorithm Lab](https://www.quantconnect.com/docs/v2/cloud-platform/research/getting-started.md#05-Stop-Nodes), [Local Platform](https://www.quantconnect.com/docs/v2/local-platform/research/getting-started.md#05-Stop-Nodes), or the [CLI](https://www.quantconnect.com/docs/v2/lean-cli/research.md).

## Add Notebooks

The process to add notebook files depends on if you use the [Algorithm Lab](https://www.quantconnect.com/docs/v2/cloud-platform/research/getting-started.md#06-Add-Notebooks), [Local Platform](https://www.quantconnect.com/docs/v2/local-platform/research/getting-started.md#06-Add-Notebooks), or the [CLI](https://www.quantconnect.com/docs/v2/lean-cli/research.md).

## Rename Notebooks

The process to rename notebook files depends on if you use the [Algorithm Lab](https://www.quantconnect.com/docs/v2/cloud-platform/research/getting-started.md#07-Rename-Notebooks), [Local Platform](https://www.quantconnect.com/docs/v2/local-platform/research/getting-started.md#07-Rename-Notebooks), or the [CLI](https://www.quantconnect.com/docs/v2/lean-cli/research.md).

## Delete Notebooks

The process to delete notebooks depends on if you use the [Algorithm Lab](https://www.quantconnect.com/docs/v2/cloud-platform/research/getting-started.md#08-Delete-Notebooks), [Local Platform](https://www.quantconnect.com/docs/v2/local-platform/research/getting-started.md#08-Delete-Notebooks), or the [CLI](https://www.quantconnect.com/docs/v2/lean-cli/research.md).

## Learn Jupyter

The following table lists some helpful resources to learn Jupyter:

| Type | Name | Producer |
| --- | --- | --- |
| Text | [Jupyter Tutorial](https://www.tutorialspoint.com/jupyter/index.htm) | tutorialspoint |
| Text | [Jupyter Notebook Tutorial: The Definitive Guide](https://www.datacamp.com/tutorial/tutorial-jupyter-notebook) | DataCamp |
| Text | [An Introduction to DataFrame](https://devblogs.microsoft.com/dotnet/an-introduction-to-dataframe/) | Microsoft Developer Blogs |
