Skip to content

Commit

Permalink
DOC: improve notebook rendering on website and Jupyter Lab
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Jul 19, 2024
1 parent 20f5250 commit 7771025
Showing 1 changed file with 20 additions and 10 deletions.
30 changes: 20 additions & 10 deletions docs/usage/visualize.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -507,15 +507,19 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Or any other properties of a {class}`.State`:"
"Or any other properties of a {class}`.State`, such as masses or $J^{PC}(I^G)$ numbers:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"hide-input"
"hide-input",
"scroll-output"
]
},
"outputs": [],
Expand All @@ -539,19 +543,16 @@
"graphviz.Source(dot)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Collapsing the graph also works for custom properties:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": [
"scroll-input"
"scroll-input",
"hide-input"
]
},
"outputs": [],
Expand Down Expand Up @@ -600,6 +601,15 @@
"graphviz.Source(dot)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
":::{tip}\n",
"Note that collapsing the graphs also works for custom edge properties.\n",
":::"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 7771025

Please sign in to comment.