# Running Otto's Minflux Script

### Things to install before starting

Install Spyder [https://www.spyder-ide.org/](https://www.spyder-ide.org/)

Install miniconda [https://repo.anaconda.com/miniconda/](https://repo.anaconda.com/miniconda/) (this is to install any libraries that might be missing from Spyder).

Make sure Imspector is installed, I used version 16.3.15620-m2205.

A copy of "plot width and thickness of filaments\_newDataFormat.py"

### Running and resolving errors

When this code is run in Spyder, you might get this error.

[![module error.png](https://www-app.igb.illinois.edu/core-docs/uploads/images/gallery/2024-12/scaled-1680-/module-error.png)](https://www-app.igb.illinois.edu/core-docs/uploads/images/gallery/2024-12/module-error.png)

This just means we need to install matplotlib in our python environment. This is why we installed miniconda.

Search for and open the Anaconda command prompt

create a new environment: **conda create --name &lt;my-env&gt;**

Type "y" when prompted

Activate the new environment: **activate &lt;my-env&gt;**

Install matplotlib in this environment: **conda install -c conda-forge matplotlib**

Type "y" when prompted

To switch to the new environment in Spyder, go to **Tools-&gt;Preferences-&gt;Python Interpreter-&gt;Use the follow interpreter.**

You'll need to restart the kernel before continuing. Go to **Console-&gt;Restart kernel.**

Since we change environments we might need to install the spyder kernel in this new environment: **conda install spyder-kernels=3.0**

Type "y" when prompted

Running the software script again might produce an error with scikit-learn.

Install scikit-learn by typing: **conda install -c conda-forge scikit-learn**

Install pandas typing: **conda install -c conda-forge python pandas**

The script should run after this.

### Running the script