Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions doc/user_guide/NetworkX.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,11 @@
"G = nx.dodecahedral_graph()\n",
"\n",
"shells = [[2, 3, 4, 5, 6], [8, 1, 0, 19, 18, 17, 16, 15, 14, 7], [9, 10, 11, 12, 13]]\n",
"shell = hvnx.draw_shell(G, nlist=shells)\n",
"shell_pos = nx.shell_layout(G, nlist=shells, scale=100)\n",
"shell = hvnx.draw(G, pos=shell_pos)\n",
"\n",
"pos = nx.nx_agraph.graphviz_layout(G)\n",
"graphviz = hvnx.draw(G, pos=pos)\n",
"graphviz_pos = nx.nx_agraph.graphviz_layout(G)\n",
"graphviz = hvnx.draw(G, pos=graphviz_pos)\n",
"\n",
"layout = shell + graphviz\n",
"layout"
Expand Down
4 changes: 3 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,13 @@ DISPLAY = ":99.0"
HVPLOT_PATCH_PLOT_DOCSTRING_SIGNATURE = "false"

[feature.doc.tasks]
# dot -c needs to be run manually after graphviz install from conda
_docs-dot-c = "dot -c"
docs-build-sphinx = 'sphinx-build -j auto -b html doc builtdocs'
_docs-install = 'python -m pip install --no-deps --disable-pip-version-check -e .'
# Depends on _docs-install instead of install as install
# in the default environment
docs-build = { depends-on = ["_docs-install", "docs-build-sphinx"] }
docs-build = { depends-on = ["_docs-dot-c", "_docs-install", "docs-build-sphinx"] }
docs-server = 'python -m http.server 5500 --directory ./builtdocs'

# ================== BUILD ====================
Expand Down
Loading