Skip to content

Commit

Permalink
DOC: update tutorial documentation
Browse files Browse the repository at this point in the history
- add `nbsphinx` and `nbsphinx-link` dependencies to
  directly include new jupyter-notebook tutorials in docs
- minor typo corrections and renames in tutorials
- related: #185
  • Loading branch information
fkuehlein committed Jan 8, 2024
1 parent ed6fce5 commit bcc009d
Show file tree
Hide file tree
Showing 19 changed files with 109 additions and 94 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ install:

# testing dependencies
- travis_retry conda install -c conda-forge tox flake8 pylint pytest-xdist pytest-cov codecov
- travis_retry conda install -c conda-forge networkx matplotlib cartopy sphinx
- travis_retry conda install -c conda-forge networkx matplotlib cartopy sphinx nbsphinx nbsphinx-link

# debugging info
- conda info -a
Expand Down
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages'
'sphinx.ext.githubpages',
'nbsphinx',
'nbsphinx_link',
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
9 changes: 5 additions & 4 deletions docs/source/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ Tutorials

The tutorials are designed to be self-explanatory. For further details on the
used classes and methods please refer to the :doc:`api_doc`.
The tutorials are set up as Jupyter notebooks that can be accessed read-only
through the links below. The original, runnable notebook files can be found
in the ``examples`` folder of ``pyunicorn``'s root directory.

.. toctree::
:maxdepth: 1
:glob:

tutorials/climate_network_1
tutorials/recurrence_network_1


tutorials/*
6 changes: 6 additions & 0 deletions docs/source/tutorials/ClimateNetworks.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"path": "../../../examples/tutorials/ClimateNetworks.ipynb",
"extra-media": [
"../../../examples/tutorials/images"
]
}
6 changes: 6 additions & 0 deletions docs/source/tutorials/EventSeriesAnalysis.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"path": "../../../examples/tutorials/EventSeriesAnalysis.ipynb",
"extra-media": [
"../../../examples/tutorials/images"
]
}
6 changes: 6 additions & 0 deletions docs/source/tutorials/RecurrenceNetworks.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"path": "../../../examples/tutorials/RecurrenceNetworks.ipynb",
"extra-media": [
"../../../examples/tutorials/images"
]
}
6 changes: 6 additions & 0 deletions docs/source/tutorials/VisibilityGraphs.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"path": "../../../examples/tutorials/VisibilityGraphs.ipynb",
"extra-media": [
"../../../examples/tutorials/images"
]
}
20 changes: 0 additions & 20 deletions docs/source/tutorials/climate_network_1.rst

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/tutorials/images/ECA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/tutorials/images/HVG.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/tutorials/images/SimpleVG.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions docs/source/tutorials/recurrence_network_1.rst

This file was deleted.

Loading

0 comments on commit bcc009d

Please sign in to comment.