# Creating a Mitosheet

{% hint style="warning" %}
Before creating a Mitosheet, make sure [you've installed Mito](/getting-started/installing-mito.md). If you just installed Mito, **make sure to restart your kernel + refresh your browser.**
{% endhint %}

### Create a new mitosheet

1. Open the Notebook where you want to create the mitosheet. If you installed Mito in a virutal environment, make sure to [launch the notebook from the same virtual environment](/how-to/creating-a-mitosheet/open-existing-virtual-environments.md).&#x20;
2. Copy and paste this code into a cell:

```python
import mitosheet
mitosheet.sheet()
```

3. Run the code by clicking on the code cell that contains it and pressing **Shift + Enter**.
4. Follow the instructions to [import data into Mito](/how-to/importing-data-to-mito.md).

### Reopen an existing mitosheet

If you've already created a mitosheet that you want to continue working from:

1. Open the Notebook where you previously created the mitosheet. If you installed Mito in a virutal environment, make sure to [launch the notebook from the same virtual environment](/how-to/creating-a-mitosheet/open-existing-virtual-environments.md).&#x20;
2. Click on the code cell that contains the `mitosheet.sheet(...)` call that you want to reload, and press **Shift+Enter**.

If you want to learn more about reopening an existing mitosheet, read [this section](/how-to/overview-of-the-mitosheet.md#rerunning-an-analysis) of the Core Concepts overview. &#x20;

### Common Errors

#### First time creating a mitosheet

If this is the first mitosheet you are creating after installing Mito, view these [common install errors](/getting-started/installing-mito/common-install-errors.md).

#### ModuleNotFoundError

<figure><img src="/files/Hwk77ampLK7o7M71KwN4" alt=""><figcaption></figcaption></figure>

If you've previously created a mitosheet, and you see this **ModuleNotFoundError** after running the above code, its likely because the mitosheet package is not installed in your current environment.&#x20;

Make sure to launch [launch the notebook from the same virtual environment](/how-to/creating-a-mitosheet/open-existing-virtual-environments.md) that you installed Mito in.&#x20;

**NameError**

<figure><img src="/files/I4JnN0z1Uj8f9lLzHRbu" alt=""><figcaption></figcaption></figure>

If after running the `mitosheet.sheet()` code, you see this **NameError**, you have to first import the mitosheet package.&#x20;

1. Copy this code into your notebook above the `mitosheet.sheet()` call

```
import mitosheet
```

2. Click on the `import mitosheet` code and press **Shift + Enter**&#x20;
3. Click on the `mitosheet.sheet()` code and press **Shift + Enter**

{% hint style="info" %}
Want help? Get in contact with our support team through [Discord](https://discord.gg/XdJSZyejJU), [Slack](https://join.slack.com/t/trymito/shared_invite/zt-1h6t163v7-xLPudO7pjQNKccXz7h7GSg), or by emailing <jake@sagacollab.com>
{% endhint %}


---

# 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.trymito.io/how-to/creating-a-mitosheet.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.
