How to do this depends on your Operating System.
On Windows:
open powershell (under the current user) and run:
| powershell -ExecutionPolicy ByPass -c {$env:UV_INSTALL_DIR = “C:\Custom\Path”;irm https://astral.sh/uv/install.ps1 | iex} |
On Mac OS:
In a terminal execute:
| curl -LsSf https://astral.sh/uv/install.sh | sh |
uv venv pylake
source pylake/Scripts/activate
uv pip install lumicks.pylake uv pip install jupyter
It may be needed to install jupyter extensions:
jupyter labextension install jupyter-matplotlib
jupyter notebook
cd Projects source pylake/Scripts/activate jupyter notebook
Jupyter notebook
import numpy as np
import matplotlib.pyplot as plt
import lumicks.pylake as lk
filenames = lk.download_from_doi("10.5281/zenodo.7729525", "test_data")
file = lk.File("test_data/kymo.h5")
plt.figure()
file.force1x.plot()
plt.savefig("force1x.png")
plt.show()
d_data = file["Distance"]["Distance 1"]
hf_downsampled, d_cropped = file["Force HF"]["Force 1x"].downsampled_like(d_data)
plt.figure()
d_cropped.plot()
hf_downsampled.plot()
plt.show()
-Authored by Nico Stuurman March 2025