Repo with katas for several data science topics and random exercises I stored on my computer for years
In order to work with the virtual environment created with Poetry and the jupyter notebooks follow the next steps:
If you haven’t initialized the environment yet, run:
poetry install # Create the environment and install dependencies
poetry shellTo verify the environment path:
poetry env info --pathpoetry run python -m ipykernel install --user --name=myenv --display-name"name-to-display"Replace name-to-display with a name that is easy to differentiate from the other environemts you work with
- Open any notebook you want to work in
- Click on top right
Select Kernel - Find the
name-to-displaythat you previously decided
☝️ You need to install few things before:
- Docker
- Docker extension
- PostgreSQL extension
Add a new connection and fill the required fields with the values from docker-compose.yaml. Test & Save & Connect.
poetry run python sql/migrate.py
Refresh localhost postgres and you should see them:
Remember that in order to execute the cells on jupyter nobook with SQL code you have to add %%sql at the begining

