This creates a local copy in the openavmkit/ directory and navigates into it.
2
Create a virtual environment
Set up an isolated Python environment to avoid conflicts with other projects:
python -m venv venvsource venv/bin/activate
The first command creates the virtual environment. The second command activates it.
You’ll see (venv) prepended to your command prompt when the virtual environment is active.
Understanding virtual environments:Virtual environments isolate OpenAVM Kit’s dependencies from other Python projects on your system. The python -m venv venv command creates the environment (run once), while the activate script starts it (run each time you open a new terminal).To exit the virtual environment later:
deactivate
3
Install dependencies
With the virtual environment active, install all required packages:
Install the library in editable mode (recommended for development):
pip install -e .
The . refers to the current directory. The -e flag installs in editable mode, so changes to the source code take effect immediately without reinstalling.
Ensure you’re in the top-level openavmkit/ directory (where setup.py exists) before running this command.
To use the included Jupyter notebooks for interactive workflows:
pip install jupyterjupyter notebook
The jupyter notebook command launches a local server and opens your browser to the notebook interface. Navigate to the notebooks/ directory to explore example workflows.
The Jupyter server runs locally on your machine. The browser interface communicates with this server to execute code and display results.