Getting Started¶
VLab4Mic is compatible with Python 3.10, 3.11, 3.12, and 3.13 on macOS, Windows, and Linux.
Step 1 — Create and Activate a Virtual Environment¶
Tip
We recommend installing VLab4Mic in a dedicated virtual environment to avoid dependency conflicts. The examples below use Python's built-in venv; pyenv or Conda can also be used as alternatives.
Step 2 — Install VLab4Mic¶
For Python scripts only:
Including Jupyter notebook support:
On first use, VLab4Mic may download required PDB/CIF structure files. These
runtime files are stored in your user folder at ~/.vlab4mic/structures, not in
the installed Python package directory. Set VLAB4MIC_STRUCTURE_DIR to use a
different cache location.
Verify Installation¶
Check that VLab4Mic is installed correctly:
Or run a minimal simulation:
from vlab4mic.experiments import image_vsample
images, noiseless, experiment = image_vsample(run_simulation=True)
print("Installation successful!")
Next Steps¶
-
Use Jupyter Notebooks
Run VLab4Mic without writing code in Google Colab or a local Jupyter Lab.
-
Use Python Scripts
Run VLab4Mic from the command line or a Python interpreter.