Running Otto's Minflux Script
Things to install before starting
Install Spyder https://www.spyder-ide.org/
Install 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.
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 <my-env>
Type "y" when prompted
Activate the new environment: activate <my-env>
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->Preferences->Python Interpreter->Use the follow interpreter.
You'll need to restart the kernel before continuing. Go to Console->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