# Installing Mito in JupyterHub

Adding Mito to your JupyterHub user servers is a great way to enable your users to take advantage of AI and Spreadsheet features that Mito provides

JupyterHub uses many different spawners and installation instructions will depend on the chosen spawner. Here we provide the instructions for most common cases.&#x20;

{% hint style="warning" %}
Your custom JupyterHub use case not covered below? Reach out to <jake@sagacollab.com> to get help
{% endhint %}

## Container-based Servers

If you use a container to run your user servers, add installation command somewhere in your Docker file.

```
RUN pip install --no-cache-dir mito-ai mitosheet
```

Common scenarios for this are:

* Docker with [DockerSpawner](https://github.com/jupyterhub/dockerspawner)
* K8s with [KubeSpawner](https://github.com/jupyterhub/kubespawner)
* Z2JH distribution — see instructions [here](https://z2jh.jupyter.org/en/stable/jupyterhub/customizing/user-environment.html#customize-an-existing-docker-image)

## The Littlest JupyterHub (TLJH)

In line with the official [guide](https://tljh.jupyter.org/en/latest/howto/user-env/user-environment.html#installing-pip-packages), run the following command

```
sudo -E pip install mito-ai mitosheet
```


---

# 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/getting-started/installing-mito/installing-mito-in-jupyterhub.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.
