What happens?
Conflicts with uv usage of dependancy-groups: https://docs.astral.sh/uv/concepts/projects/dependencies/#dependency-groups.
%load_ext sql will send a cryptic error:
IndexError: list index out of range from toml package if the pyproject.toml contains a [dependancy-groups] section.
It seems to be related to toml package which has not been updated since long. Maybe change to another toml reader package or make an argument to not load the config file.
To Reproduce
To reproduce the error:
- Create a pyproject with a dependancy-groups
- Install jupysql
- launch the command %load_ext sql in jupyter notebook
OS:
Windows
JupySQL Version:
0.11.1
Full Name:
Mickael Martinez
Affiliation:
ASDAEX