Skip to main content

Interactive FreeSurfer Stats Dashboard

Project description

freeview: Interactive FreeSurfer Stats Dashboard

PyPI Version Python Versions License

Quick install (recommended)

Use a Python 3.10+ interpreter when creating the virtual environment.

Install freeview:

  • Linux / macOS:
# ensure you pick a 3.10+ interpreter (3.12 recommended)
python3.12 -m venv freeviewer
./freeviewer/bin/python -m pip install --upgrade pip
./freeviewer/bin/python -m pip install freeview
./freeviewer/bin/freeview cert
./freeviewer/bin/freeview serve
  • Windows (PowerShell):
py -3.12 -m venv freeviewer
.\freeviewer\Scripts\python.exe -m pip install --upgrade pip
.\freeviewer\Scripts\python.exe -m pip install freeview
.\freeviewer\Scripts\freeview.exe cert
.\freeviewer\Scripts\freeview.exe serve

Key Note: If mkcert is not available, freeview cert and freeview serve will print installation hints and will not start until valid, trusted certs exist. freeview will call mkcert -install and then mkcert -ecdsa to generate localhost.pem and localhost-key.pem in the per-user cert directory.

Setup local certificates (important)

Certificates are required for the recommended HTTPS-only local setup.

  • freeview requires HTTPS for localhost. The CLI command freeview cert will create and trust a local CA using mkcert (explicit consent is requested) and generate ECDSA P-256 certs.
  • Generated certs are stored per-user:
    • macOS / Linux: $XDG_DATA_HOME/freeview/certs or ~/.local/share/freeview/certs
    • Windows: %APPDATA%\\freeview\\certs

(Dependency) Install mkcert to create local certificates:

  • Linux:
sudo apt install -y mkcert libnss3-tools 
  • macOS:
brew install mkcert 
  • Windows (Admin PowerShell):
choco install mkcert -y
# mkcert -install

For other Linux distros, see mkcert's official guidelines: use your distro package or download the binary from https://github.com/FiloSottile/mkcert and run mkcert -install.

After installing mkcert, create the local certificates

Create local certificates

./freeviewer/bin/freeview cert   # to create local certificates

INSTALLATION COMPLETE

Launch freeview dashboard

./freeviewer/bin/freeview serve --port 8501   # when using a local venv

Note: The viewer should be running in the default URL: https://localhost:8501






Troubleshooting

  • ERROR: Package 'freeview' requires a different Python: your venv Python is older than 3.10 — recreate the venv with a 3.10+ interpreter (for example python3.12 -m venv freeviewer).
  • no such file or directory: ./freeviewer/bin/freeview: the package failed to install into that venv (or you typed an extra dot like freeview..). Re-run the install steps above.
  • Browser certificate warnings: run mkcert -install (or freeview cert), then restart the browser.
  • Upgrade pip inside the venv if you see pip warnings:
./freeviewer/bin/python -m pip install --upgrade pip

Install from a local wheel (developer / offline)

Build a wheel in the project root (requires the build package):

./freeviewer/bin/python -m pip install --upgrade pip build
./freeviewer/bin/python -m build
./freeviewer/bin/python -m pip install *.whl

Replace ./freeviewer/bin/python with the interpreter you used to create the venv (or python3.12 if you are not in a venv yet).

Alternate launch method with Streamlit directly (advanced / debugging)

python -m streamlit run path/to/freeview/streamlit_app.py -- \\
	./output/consolidated_stats.csv ./output/summary.csv

When running Streamlit directly and wanting HTTPS you must pass --server.sslCertFile and --server.sslKeyFile.

CSV conversion

freeview stats2csv --stats-dir /path/to/A_T1/stats --out-dir ./output

Citation

This software is released for broad research, educational, and engineering use. If this package helps your work, please cite the following paper:

@misc{tarafdar2026interpretablefrugallearningsystems,
      title={Interpretable and Frugal Learning Systems Employing Multiresolution Pyramids and Volterra Kernels},
      author={Kishore Kumar Tarafdar},
      year={2026},
      eprint={2606.15011},
      archivePrefix={arXiv},
      primaryClass={eess.SP},
      url={https://arxiv.org/abs/2606.15011},
}

Copyright © 2026 Kishore Kumar Tarafdar

Released under the GNU General Public License v3.0 — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

freeview-0.0.3.tar.gz (27.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

freeview-0.0.3-py3-none-any.whl (32.4 kB view details)

Uploaded Python 3

File details

Details for the file freeview-0.0.3.tar.gz.

File metadata

  • Download URL: freeview-0.0.3.tar.gz
  • Upload date:
  • Size: 27.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for freeview-0.0.3.tar.gz
Algorithm Hash digest
SHA256 99632880d54c73373e5c0cf7906339a7327a5279cb34db6d60398532af8fa31f
MD5 40678006ddcb69611fec1e2a38303f07
BLAKE2b-256 8bb36604024cad9887d42a9477d0892c15de3368534fcdb38a2716825ea85cb8

See more details on using hashes here.

File details

Details for the file freeview-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: freeview-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 32.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for freeview-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 28c8b93bf5ba68161200ca9599ee313e62e52cad35da035b841a9006cf410764
MD5 8049db6e35804267334c1e528664cf96
BLAKE2b-256 0964f65ced6ab2491bf81da7e851f66e117e285cc3a177e76aa5cea159c535ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page