# JupyterLab

### Prerequisites

{% hint style="info" %}
Note: We are working on native JupyterLab extension with more extensive features. Join the waitlist below if you are interested.\
\
<https://forms.gle/31MyoJBtU6V4nAbs8>
{% endhint %}

To use Codesquire in JupyterLab extension, you need to install it. Click on the link below to go to a Quickstart Section and learn how to install CodeSquire for JupyterLab.

{% content-ref url="/pages/AG0yFNV7NwOa7YUwL8K4" %}
[Jupyter Lab](/quickstart/jupyter-lab.md)
{% endcontent-ref %}

### Example

#### 1. After installing Chrome Extension, go to JupyterLab and open or create a new notebook.

#### 2. Type the following comment

```python
# get a sample df from the internet and click Ctrl + Shift + E
df = 
```

click **Ctrl + Shift + E to generate code.**

#### 3. The extension will generate the code, you can click Ctrl+Shift+K to copy the code, and Ctrl + Shift+Q to close the window.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codesquire.ai/tutorial/jupyterlab.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
