datamole-ai / edvart

An open-source Python library for Data Scientists & Data Analysts designed to simplify the exploratory data analysis process. Using Edvart, you can explore data sets and generate reports with minimal coding.
https://datamole-ai.github.io/edvart/
MIT License
48 stars 7 forks source link

feat: make addition of ToC idempotent #74

Closed lukany closed 1 year ago

lukany commented 1 year ago

By design it was possible to add table of contents multiple times. The rendered report then contained multiple table of contents. Having a separate argument for table of contents instead of having it in sections list makes multiple calls of add_table_of_contents() idempotent — always only one ToC is rendered in the end.