Skip to content
Merged
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: 6 additions & 1 deletion .github/workflows/render-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ jobs:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: pyproject.toml
- run: pip install "python-wrapper/[dev, pandas, docs]"
- run: pip install "python-wrapper/[dev, pandas, gds, docs]"

- name: Setup pandoc
uses: pandoc/actions/setup@v1
with:
version: 3.6.2

- name: Render ref docs
run: ./scripts/render_docs.sh
4 changes: 4 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,15 @@
"sphinx.ext.autodoc", # include docs from docstrings
"enum_tools.autoenum", # specialised autoclass for enums
"sphinx.ext.napoleon", # Support for NumPy and Google style docstrings
"nbsphinx", # support for jupyter notebooks
"nbsphinx_link", # support for jupyter notebooks from other directories
]

templates_path = ["_templates"]
exclude_patterns: list[str] = []

# -- Options for notebook extension -------------------------------------------
nbsphinx_execute = "never"

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
Binary file added docs/source/example_cora_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 4 additions & 5 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ This API reference manual lists all available endpoints in the `neo4j_viz` `pack


.. toctree::
:maxdepth: 2
:glob:
:maxdepth: 1
:caption: Contents:

from_gds
from_pandas
graph
render_options
*
tutorials/*
15 changes: 4 additions & 11 deletions docs/source/themes/sphinx_neo4j/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,13 @@
<nav class="navbar">
<div class="navbar-brand">
<a class="navbar-item" href="/">
<img class="navbar-logo" src="https://dist.neo4j.com/wp-content/uploads/20210422142941/neo4j-logo-2020.svg" alt="Neo4j Graph Data Science Client API Reference">
<img class="navbar-logo" src="https://dist.neo4j.com/wp-content/uploads/20210422142941/neo4j-logo-2020.svg" alt="Graph Visualization for Python API Reference">
</a>
<a href="{{ pathto(root_doc) }}" class="navbar-item no-left-padding" aria-label="Neo4j Graph Data Science Client API Reference">
Graph Data Science Client API Reference
<a href="{{ pathto(root_doc) }}" class="navbar-item no-left-padding" aria-label="Graph Visualization for Python API Reference">
Graph Visualization for Python API Reference
</a>

</div>
<div id="topbar-nav" class="navbar-menu">
<div class="navbar-start">
<span class="navbar-link">
<a href="/docs/graph-data-science-client" class="project-link external">Graph Data Science Client docs</a>
</span>
</div>
</div>
</nav>
</header>

Expand Down Expand Up @@ -68,4 +61,4 @@
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-WK23PSS');</script>
{% endif %}
{%- endblock %}
</body>
</body>
Binary file added docs/source/tutorials/example_cora_graph.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions docs/source/tutorials/gds-nvl-example.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"path": "../../../examples/gds-nvl-example.ipynb",
"extra-media": [
"../../../examples/example_cora_graph.png"
]
}
3 changes: 3 additions & 0 deletions docs/source/tutorials/neo4j-nvl-example.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/neo4j-nvl-example.ipynb"
}
3 changes: 3 additions & 0 deletions docs/source/tutorials/snowpark-nvl-example.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../examples/snowpark-nvl-example.ipynb"
}
160 changes: 147 additions & 13 deletions examples/gds-nvl-example.ipynb

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions examples/neo4j-nvl-example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
"id": "0d3ffc27",
"metadata": {},
"source": [
"# NVL Python Wrapper\n",
"\n",
"NVL (Neo4j Visualization Library) is a JavaScript library developed to display large graphs. This notebook showcases an experimental Python wrapper for this libary."
"# Visualizing Neo4j Graphs"
]
},
{
Expand Down
37 changes: 34 additions & 3 deletions examples/snowpark-nvl-example.ipynb

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions python-wrapper/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ dev = [
]
docs = [
"sphinx==8.1.3",
"autodoc_pydantic",
"enum-tools[sphinx]"
"enum-tools[sphinx]",
"nbsphinx==0.9.6",
"nbsphinx-link==1.3.1",
]
pandas = ["pandas>=2, <3", "pandas-stubs>=2, <3"]
gds = ["graphdatascience>=1, <2"] # not compatible yet with Python 3.13
Expand Down
Loading