Skip to content

Commit d6be865

Browse files
committed
References to examples
1 parent 7ec5447 commit d6be865

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

doc/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
sys.path.insert(0, os.path.abspath('sphinxext'))
2525

2626
from github_link import make_linkcode_resolve
27+
import sphinx_gallery
2728

2829
# -- General configuration ---------------------------------------------------
2930

@@ -245,13 +246,11 @@
245246
'sphx_glr_plot_adaboost_twoclass_001.png': 372,
246247
'sphx_glr_plot_compare_methods_001.png': 349}
247248

248-
import sphinx_gallery
249249
def make_carousel_thumbs(app, exception):
250250
"""produces the final resized carousel images"""
251251
if exception is not None:
252252
return
253253
print('Preparing carousel images')
254-
print(sphinx_gallery.__file__)
255254

256255
image_dir = os.path.join(app.builder.outdir, '_images')
257256
for glr_plot, max_width in carousel_thumbs.items():

doc/modules/clustering.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,10 +612,10 @@ may wish to cluster web pages by only merging pages with a link pointing
612612
from one to another. It can also be learned from the data, for instance
613613
using :func:`sklearn.neighbors.kneighbors_graph` to restrict
614614
merging to nearest neighbors as in :ref:`this example
615-
<example_cluster_plot_agglomerative_clustering.py>`, or
615+
<sphx_glr_auto_examples_cluster_plot_agglomerative_clustering.py>`, or
616616
using :func:`sklearn.feature_extraction.image.grid_to_graph` to
617617
enable only merging of neighboring pixels on an image, as in the
618-
:ref:`raccoon face <example_cluster_plot_face_ward_segmentation.py>` example.
618+
:ref:`raccoon face <sphx_glr_example_cluster_plot_face_ward_segmentation.py>` example.
619619

620620
.. topic:: Examples:
621621

doc/tutorial/basic/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ learn::
133133
[ 0., 0., 6., 13., 10., 0., 0., 0.]])
134134

135135
The :ref:`simple example on this dataset
136-
<example_classification_plot_digits_classification.py>` illustrates how starting
136+
<sphx_glr_auto_examples_classification_plot_digits_classification.py>` illustrates how starting
137137
from the original problem one can shape the data for consumption in
138138
scikit-learn.
139139

doc/tutorial/text_analytics/working_with_text_data.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ upon the completion of this tutorial:
547547
:class:`CountVectorizer`
548548

549549
* If you don't have labels, try using
550-
:ref:`Clustering <example_text_document_clustering.py>`
550+
:ref:`Clustering <sphx_glr_auto_examples_text_document_clustering.py>`
551551
on your problem.
552552

553553
* If you have multiple labels per document, e.g categories, have a look
@@ -558,7 +558,7 @@ upon the completion of this tutorial:
558558

559559
* Have a look at using
560560
:ref:`Out-of-core Classification
561-
<example_applications_plot_out_of_core_classification.py>` to
561+
<sphx_glr_auto_examples_applications_plot_out_of_core_classification.py>` to
562562
learn from data that would not fit into the computer main memory.
563563

564564
* Have a look at the :ref:`Hashing Vectorizer <hashing_vectorizer>`

0 commit comments

Comments
 (0)