Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous refinements to GitHub pages #363

Merged
merged 84 commits into from
Mar 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
76e56a4
Remove code fetching logo as it is now stored in doc/images
Mar 12, 2020
cdeac53
Fix logo in examples directory
Mar 12, 2020
d4e2274
Partial rewriting of contributing page
Mar 12, 2020
5252738
Small wording fix
Mar 12, 2020
4a145ea
Add test job to check whether PRs can push to gtda-docs
Mar 12, 2020
6f93e7b
Comment out unnecessary steps for tests
Mar 12, 2020
46700fc
Update test
Mar 12, 2020
4b69370
Try to simplify the git push
Mar 12, 2020
db6a63b
Add user emai matching public key
Mar 13, 2020
f580af0
Revert "Try to simplify the git push"
Mar 12, 2020
1de8b6e
Clone with ssh
Mar 13, 2020
90ec951
Fix hostname
Mar 13, 2020
96a8695
Try unsetting git proxy
Mar 13, 2020
4603a2c
Just cd above
Mar 13, 2020
619d56e
Change order
Mar 13, 2020
82e9a9e
Remove instructions for building documentation
Mar 13, 2020
2d00c05
Simplify path in Makefile
Mar 13, 2020
84c2288
Remove documentation job
Mar 13, 2020
e684e1e
Add @wreise to authors in doc/conf.py
Mar 13, 2020
6036844
Remove paper citation from FAQ
Mar 13, 2020
8fed020
Rename Glossary to Theory Glossary
Mar 13, 2020
0d499d4
Linting in images subpackage
Mar 13, 2020
1094b9e
Add PlotterMixin to base.rst
Mar 13, 2020
731661d
Fix indentations in contributing
Mar 13, 2020
33f1e4e
Update FAQ
Mar 13, 2020
dc2c646
Improve README with pointers to GH pages
Mar 13, 2020
93a558f
Implement @wreise's review suggestions
Mar 13, 2020
811913a
Fix links to svgs
Mar 13, 2020
b9b78b0
Remove remaining mentions of plotting.py
Mar 13, 2020
69ae7a1
Rename basic to tutorials and advanced to examples
Mar 13, 2020
0fa1ed1
Add links to static versions
wreise Mar 13, 2020
4c6bbdd
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 13, 2020
e1c446b
Small fix in mapper_quickstart
Mar 13, 2020
fd0750f
Fixes in vietoris_rips_quickstart
Mar 13, 2020
36c68eb
Toctrees for examples
wreise Mar 13, 2020
2238432
merge with Umbertos changes
wreise Mar 13, 2020
746d2ad
Merge pull request #13 from wreise/u_ghpages
ulupo Mar 13, 2020
22bd010
Small updates to notebooks
Mar 13, 2020
be951f2
Simple edits to jupyter notebooks
Mar 13, 2020
d54e804
Add plotting API notebook
Mar 13, 2020
9081b50
Wording
Mar 15, 2020
262b4d1
Merge branch 'master' of github.com:giotto-ai/giotto-tda into u_ghpages
wreise Mar 16, 2020
39b5731
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 16, 2020
fe3c887
Merge branch 'master' into ghpages
Mar 18, 2020
6829bdb
Small fix in lorenz_attractor.ipynb
Mar 18, 2020
fa1304d
Add plotting in docs
Mar 18, 2020
7c99d51
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 18, 2020
8410445
Corrections in plotting API notebook
Mar 18, 2020
ff26dd3
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 18, 2020
2f36e66
Add plotting_api notebook to tutorials in doc
Mar 18, 2020
69a42a4
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 18, 2020
394dc20
Correct name for plots in the docs,and changed the teemplate that it …
wreise Mar 18, 2020
48e5531
Fixes in glossary
Mar 18, 2020
335961c
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 18, 2020
4493383
Attempt fix at glossary table
Mar 18, 2020
93b3d7c
Merge branch 'master' into ghpages
Mar 18, 2020
8f5ecbc
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 18, 2020
248363b
Correct the VBox display
wreise Mar 18, 2020
ff41b91
Add link to github for mapper_quickstart
wreise Mar 18, 2020
6027704
Fix sectioning in lorentz_attractor example (only one main title)
wreise Mar 18, 2020
2641e0b
Merge pull request #14 from wreise/u_ghpages
ulupo Mar 19, 2020
6767419
Improvements to mapper_quickstart.ipynb
Mar 19, 2020
2f8e074
Add TODO instead of empty reference in Cech docstring
Mar 19, 2020
544137b
Fix references in docstrings
Mar 19, 2020
7fe7918
Correct reference to BettiCurve trnasformer and warning in mapper
wreise Mar 19, 2020
2e1b17d
Minor adjustments in glossary
wreise Mar 19, 2020
8836bab
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into u_ghpages
wreise Mar 19, 2020
6768e93
Correct the ssection reference
wreise Mar 19, 2020
3421986
Fix issues with time series glossary entry
Mar 19, 2020
af08459
Removespaces in all latex references
wreise Mar 19, 2020
38c32d8
One bibtex entry in images
wreise Mar 19, 2020
48a0af7
Fix hyperlink in VR quickstart
Mar 19, 2020
717ee0b
Refinements to voids on the plane notebook
Mar 19, 2020
a7a093d
Get rid of semi-colon in glossary
wreise Mar 19, 2020
e2f0460
Repercusions on docstrings from adding underscores in labels in gloss…
wreise Mar 19, 2020
eba6bf1
Merge branch 'ghpages' of github.com:ulupo/giotto-tda into ghpages
wreise Mar 19, 2020
a316208
Put fig shows back in mapper_quickstart
wreise Mar 19, 2020
4927dc8
Fix linting
wreise Mar 19, 2020
90ac714
Reintroduce scrollZoom in mapper_quickstart
Mar 20, 2020
b674d74
Remove ticks in plotting_api
Mar 20, 2020
e16c2c9
Solve merge issues in classifying_shapes notebook
Mar 20, 2020
7afd112
Improve landing page and move Lewis' blog post to notebooks/tutorials…
Mar 20, 2020
2068e30
Remove unnecessary imports in classifying_shapes
Mar 20, 2020
ad17aff
Add ticks in FAQ
Mar 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
124 changes: 26 additions & 98 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. image:: https://www.giotto.ai/static/vector/logo-tda.svg
.. image:: doc/images/tda_logo.svg
:width: 850

|Version|_ |Azure-build|_ |Azure-cov|_ |Azure-test|_ |Twitter-follow|_ |Slack-join|_
Expand All @@ -25,46 +25,40 @@
giotto-tda
==========

giotto-tda is a high performance topological machine learning toolbox in Python built on top of
scikit-learn and is distributed under the GNU AGPLv3 license. It is part of the `Giotto <https://github.com/giotto-ai>`_ family of open-source projects.
``giotto-tda`` is a high-performance topological machine learning toolbox in Python built on top of
``scikit-learn`` and is distributed under the GNU AGPLv3 license. It is part of the `Giotto <https://github.com/giotto-ai>`_
family of open-source projects.

Project genesis
===============

giotto-tda is the result of a collaborative effort between `L2F SA
<https://www.l2f.ch/>`_, the `Laboratory for Topology and Neuroscience
<https://www.epfl.ch/labs/hessbellwald-lab/>`_ at EPFL, and the `Institute of Reconfigurable & Embedded Digital Systems (REDS)
<https://heig-vd.ch/en/research/reds>`_ of HEIG-VD.
``giotto-tda`` is the result of a collaborative effort between `L2F SA <https://www.l2f.ch/>`_,
the `Laboratory for Topology and Neuroscience <https://www.epfl.ch/labs/hessbellwald-lab/>`_ at EPFL,
and the `Institute of Reconfigurable & Embedded Digital Systems (REDS) <https://heig-vd.ch/en/research/reds>`_ of HEIG-VD.

License
=======

giotto-tda is distributed under the AGPLv3 `license <https://github.com/giotto-ai/giotto-tda/blob/master/LICENSE>`_.
If you need a different distribution license, please contact the L2F team at
business@l2f.ch.
.. _L2F team: business@l2f.ch
``giotto-tda`` is distributed under the AGPLv3 `license <https://github.com/giotto-ai/giotto-tda/blob/master/LICENSE>`_.
If you need a different distribution license, please contact the `L2F team`_.

Documentation
=============

Please visit https://giotto-ai.github.io/gtda-docs and navigate to the version you are interested in.

Getting started
===============
Please visit `https://giotto-ai.github.io/gtda-docs <https://giotto-ai.github.io/gtda-docs>`_ and navigate to the version you are interested in.

To get started with giotto-tda, first follow the installations steps below. `This blog post <https://towardsdatascience.com/getting-started-with-giotto-learn-a-python-library-for-topological-machine-learning-451d88d2c4bc>`_, and references therein, offer a friendly introduction to the topic of topological machine learning and to the philosophy behind giotto-tda.

Tutorials and use cases
-----------------------
Use cases
=========

Simple tutorials can be found in the `examples <https://github.com/giotto-ai/giotto-tda/tree/master/examples>`_ folder. For a wide selection of use cases and application domains, you can visit `this page <https://giotto.ai/learn/course-content>`_.
For a wide selection of use cases and application domains, you can visit `this page <https://giotto.ai/learn/course-content>`_.

Installation
============

Dependencies
------------

The latest stable version of giotto-tda requires:
The latest stable version of ``giotto-tda`` requires:

- Python (>= 3.6)
- NumPy (>= 1.17.0)
Expand All @@ -81,7 +75,7 @@ To run the examples, jupyter is required.
User installation
-----------------

The simplest way to install giotto-tda is using ``pip`` ::
The simplest way to install ``giotto-tda`` is using ``pip`` ::

pip install -U giotto-tda

Expand All @@ -93,86 +87,27 @@ bug fixes can be installed by running ::

pip install -U giotto-tda-nightly

The main difference between giotto-tda-nightly and the developer installation (see the section
The main difference between ``giotto-tda-nightly`` and the developer installation (see the section
on contributing, below) is that the former is shipped with pre-compiled wheels (similarly to the stable
release) and hence does not require any C++ dependencies. As the main library module is called ``gtda`` in
both the stable and nightly versions, giotto-tda and giotto-tda-nightly should not be installed in
both the stable and nightly versions, ``giotto-tda`` and ``giotto-tda-nightly`` should not be installed in
the same environment.

Developer installation
----------------------

Please consult the `relevant page <https://giotto-ai.github.io/gtda-docs/dev/installation.html#developer-installation>`_
for detailed instructions on how to build ``giotto-tda`` from sources across different platforms.

.. _contributing-section:

Contributing
============

We welcome new contributors of all experience levels. The Giotto
community goals are to be helpful, welcoming, and effective. To learn more about
making a contribution to giotto-tda, please see the `CONTRIBUTING.rst
<https://github.com/giotto-ai/giotto-tda/blob/master/CONTRIBUTING.rst>`_ file.

Developer installation
----------------------

Installing both the PyPI release and source of giotto-tda in the same environment is not recommended since it is
known to cause conflicts with the C++ bindings.

The developer installation requires three important C++ dependencies:

- A C++14 compatible compiler
- CMake >= 3.9
- Boost >= 1.56

Please refer to your system's instructions and to the `CMake <https://cmake.org/>`_ and
`Boost <https://www.boost.org/doc/libs/1_72_0/more/getting_started/index.html>`_ websites for definitive guidance on how to install these dependencies. The instructions below are unofficial, please follow them at your own risk.

Linux
~~~~~

Most Linux systems should come with a suitable compiler pre-installed. For the other two dependencies, you may consider using your distribution's package manager, e.g. by running

.. code-block:: bash

sudo apt-get install cmake libboost-dev

if ``apt-get`` is available in your system.

macOS
~~~~~

On macOS, you may consider using ``brew`` (https://brew.sh/) to install the dependencies as follows:

.. code-block:: bash

brew install gcc cmake boost

Windows
~~~~~~~

On Windows, you will likely need to have `Visual Studio <https://visualstudio.microsoft.com/>`_ installed. At present,
it appears to be important to have a recent version of the VS C++ compiler. One way to check whether this is the case
is as follows: 1) open the VS Installer GUI; 2) under the "Installed" tab, click on "Modify" in the relevant VS
version; 3) in the newly opened window, select "Individual components" and ensure that v14.24 or above of the MSVC
"C++ x64/x86 build tools" is selected. The CMake and Boost dependencies are best installed using the latest binary
executables from the websites of the respective projects.


Source code
~~~~~~~~~~~

You can obtain the latest state of the source code with the command::

git clone https://github.com/giotto-ai/giotto-tda.git


To install:
~~~~~~~~~~~

.. code-block:: bash

cd giotto-tda
python -m pip install -e ".[dev]"

This way, you can pull the library's latest changes and make them immediately available on your machine.
Note: we recommend upgrading ``pip`` and ``setuptools`` to recent versions before installing in this way.
making a contribution to ``giotto-tda``, please consult the `relevant page
<https://giotto-ai.github.io/gtda-docs/dev/contributing/index.html>`_.
ulupo marked this conversation as resolved.
Show resolved Hide resolved

Testing
-------
Expand All @@ -182,13 +117,6 @@ source directory::

pytest gtda


Changelog
=========

See the `RELEASE.rst <https://github.com/giotto-ai/giotto-tda/blob/master/RELEASE.rst>`__ file
for a history of notable changes to giotto-tda.

Important links
---------------

Expand Down
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
########## Config

ifndef GITDIR
GITDIR = ../../../projects/gtda-docs
GITDIR = ../../gtda-docs
endif

ifndef VERSION
Expand Down
21 changes: 9 additions & 12 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
project = 'giotto-tda'
copyright = '2020, L2F'
author = 'Guillaume Tauzin, Umberto Lupo, Matteo Caorsi, Anibal Medina, ' \
'Lewis Tunstall'
'Lewis Tunstall, Wojciech Reise'
ulupo marked this conversation as resolved.
Show resolved Hide resolved

# The full version, including alpha/beta/rc tags
release = __version__
Expand Down Expand Up @@ -107,7 +107,6 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"

html_theme_options = {
Expand All @@ -122,17 +121,15 @@
with open('versions', 'r') as f:
_versions = [c[2:] for c in f.read().splitlines()]
_versions = list(filter(lambda c: not(c.startswith('.')), _versions))
html_theme_options.update({'versions': [(c, f'../{c}/index.html')
for c in set(_versions).union([current_version])]})
html_theme_options.update({
'versions': [
(c, f'../{c}/index.html')
for c in set(_versions).union([current_version])
]
})

# Get logo
path_to_image = "images/tda_logo.svg"
if not(os.path.exists(path_to_image)):
import requests
r = requests.get('https://www.giotto.ai/static/vector/logo-tda.svg')
with open(path_to_image, 'wb') as f:
f.write(r.content)
html_logo = path_to_image
html_logo = "images/tda_logo.svg"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand All @@ -145,4 +142,4 @@
.. |ProjectVersion| replace:: Foo Project, version {versionnum}
""".format(
versionnum=release,
)
)