Skip to content

Commit

Permalink
fix: render graphviz.Source as link (#220)
Browse files Browse the repository at this point in the history
* docs: improve cell output rendering
  • Loading branch information
redeboer authored Jan 31, 2022
1 parent 7ad7f3e commit 52990a7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ def get_version(package_name: str) -> str:
intersphinx_mapping = {
"attrs": (f"https://www.attrs.org/en/{get_version('attrs')}", None),
"compwa-org": ("https://compwa-org.readthedocs.io", None),
"graphviz": ("https://graphviz.readthedocs.io/en/stable", None),
"ipywidgets": (
f"https://ipywidgets.readthedocs.io/en/{get_version('ipywidgets')}",
None,
Expand Down
20 changes: 14 additions & 6 deletions docs/usage/amplitude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"full-width"
]
},
"outputs": [],
"source": [
"dict(model_no_dynamics.parameter_defaults)"
Expand All @@ -296,7 +300,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
"tags": [
"full-width"
]
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -340,7 +346,11 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"tags": [
"full-width"
]
},
"outputs": [],
"source": [
"model_builder.scalar_initial_state_mass = True\n",
Expand Down Expand Up @@ -562,9 +572,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"full-width"
]
"tags": []
},
"outputs": [],
"source": [
Expand Down
6 changes: 5 additions & 1 deletion docs/usage/modify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
},
"outputs": [],
"source": [
"new_model.parameter_defaults"
"dict(new_model.parameter_defaults)"
]
},
{
Expand Down Expand Up @@ -448,6 +448,10 @@
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.8.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 52990a7

Please sign in to comment.