Skip to content

Commit

Permalink
Replace the example
Browse files Browse the repository at this point in the history
With something trivial but functional
  • Loading branch information
liamhuber committed May 22, 2024
1 parent 6687a96 commit 9b7e14e
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions notebooks/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,45 @@
"id": "c44a93e4-1ce4-4a26-a82a-3d2bff41988b",
"metadata": {},
"source": [
"# Demo notebook\n",
"\n",
"In the standard setup, this notebook gets included in both the docs and the tests.\n",
"# Demos"
]
},
{
"cell_type": "markdown",
"id": "51352718-c84e-4515-b033-f0cd80150269",
"metadata": {},
"source": [
"## `DotDict`"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "0cef82c5-686f-4753-b8aa-ee8125f17380",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"this is dot accessible\n"
]
}
],
"source": [
"from pyiron_snippets.dotdict import DotDict\n",
"\n",
"In the notebook gallery in the docs, most notebooks will use their last image as their thumbnail; this notebook specifies usage of the pyiron logo in `docs/conf.py` under the `nbsphinx_thumbnails` dictionary."
"dd = DotDict({\"foo\": \"this is dot accessible\"})\n",
"print(dd.foo)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "52a8cfcc",
"id": "203b5240-0ce9-4c71-86a0-6048b45f7b0f",
"metadata": {},
"outputs": [],
"source": [
"import pyiron_snippets\n",
"print(pyiron_snippets.__version__)"
]
"source": []
}
],
"metadata": {
Expand All @@ -40,7 +62,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.7"
"version": "3.11.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 9b7e14e

Please sign in to comment.