git clone https://github.com/geometric-intelligence/timescales.git
cd timescalesThis project uses Poetry to manage dependencies.
- Install Poetry (if you don't have it already):
curl -sSL https://install.python-poetry.org | python3 -- Make sure that Poetry is accessible in your PATH. For example, add the following to your
.zshrcfile:
export PATH="~/.local/bin:$PATH"- Check that Poetry is installed correctly:
poetry --version- Install dependencies
poetry install- Install the poetry shell plugin
poetry self add poetry-plugin-shell- Activate the virtual environment
poetry shellpython my_script.pyblack .
ruff check --fix .
mypy .
pytest .- Run the following command:
python -m ipykernel install --user --name timescales --display-name "Python (timescales)"- Verify the kernel was created:
jupyter kernelspec list- Refresh the kernel selector. If it doesn't show up, then (if using VSCode/Cursor): press
Command+Shift+Pto open the command palette, and selectDeveloper: Reload Windowto refresh the window.