{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "013c8cfe-254e-4ee8-81e0-27478628c8e9", "metadata": {}, "outputs": [], "source": [ "import tomllib\n", "\n", "with open(\"config.toml\", \"rb\") as f:\n", " config = tomllib.load(f)\n", "\n", "numbers = config[\"my_integers\"] # Returns Python list: [1, 2, 3, 42]" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.7" } }, "nbformat": 4, "nbformat_minor": 5 }