Creating a Mitosheet

Use Mito to generate Python code, start automating your Excel processes.

Before creating a Mitosheet, make sure you've installed Mito. If you just installed Mito, make sure to restart your kernel + refresh your browser.

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.

  2. Copy and paste this code into a cell:

import mitosheet
mitosheet.sheet()
  1. Run the code by clicking on the code cell that contains it and pressing Shift + Enter.

  2. Follow the instructions to import data into Mito.

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.

  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 of the Core Concepts overview.

Common Errors

First time creating a mitosheet

If this is the first mitosheet you are creating after installing Mito, view these common install errors.

ModuleNotFoundError

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.

Make sure to launch launch the notebook from the same virtual environment that you installed Mito in.

NameError

If after running the mitosheet.sheet() code, you see this NameError, you have to first import the mitosheet package.

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

import mitosheet
  1. Click on the import mitosheet code and press Shift + Enter

  2. Click on the mitosheet.sheet() code and press Shift + Enter

Want help? Get in contact with our support team through Discord, Slack, or by emailing jake@sagacollab.com

Last updated