Windows
Installation
We introduce how to install optinist. We have developed optinist python(backend) and typescript(frontend), so you need to make both environment. Please follow instructions below.
Caution
For WSL2, we confirmed them on Ubuntu 20.04/22.04.
For Windows (PowerShell)
1. Make backend environment
Install Tools
Install Visual Studio Build Tools
For install CaImAn, you need to install Visual Studio Build Tools.
Download
Build Tools for Visual Studio 2022
from https://visualstudio.microsoft.com/ja/downloads/In insteraller, select
Desktop Application for C++
Install Anaconda
Install Anaconda for Windows
https://www.anaconda.com/products/individual
Create anaconda environment
On the Anaconda PowerShell Prompt(anaconda3),
conda create -n optinist python=3.8
conda activate optinist
Install library
pip install optinist
Set saving directory
Optinist default saving directory is C:\tmp\optinist
. If you reboot your PC, this repogitory content is deleted. And setting the saving directory in environment path.
$ENV:OPTINIST_DIR="your_saving_dir"
# for example
# $ENV:OPTINIST_DIR="C:\optinist_data"
2. Run backend
On the Anaconda PowerShell Prompt(anaconda3),
run_optinist
run_optinist
log is as blow:
(optinist) PS C:\optinist\backend> run_optinist
INFO: Will watch for changes in these directories: ['C:\\optinist\\backend']
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process 16312 using statreload
INFO: Started server process 34084
INFO: Waiting for application startup.
INFO: Application startup complete.
Launch browser, and go to http://localhost:8000
It opens correctly!
Done!
For Windows (WSL2)
1. Make backend environment
Install Tools
Install gcc, g++
For install CaImAn, you need to install gcc and g++.
sudo apt update
sudo apt install gcc g++
Install Anaconda
# *The latest version of the module is ok.
wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
bash Anaconda3-2022.10-Linux-x86_64.sh
Create anaconda environment
conda create -n optinist python=3.8
conda activate optinist
Install library
pip install optinist
Set saving directory
Optinist default saving directory is /tmp/studio
. If you reboot your PC, this repogitory content is deleted. And setting the saving directory in environment path.
export OPTINIST_DIR="your_saving_dir"
2. Run backend
run_optinist
run_optinist
log is as blow:
$ run_optinist
INFO: Will watch for changes in these directories: ['/home/oist/optinist/backend']
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process [3268] using statreload
INFO: Started server process [3311]
INFO: Waiting for application startup.
INFO: Application startup complete.
Launch browser, and go to http://localhost:8000
It opens correctly!
Done!