Skip to content

Commit

Permalink
Merge pull request #274 from scipp/more-gallery-examples
Browse files Browse the repository at this point in the history
Add two more gallery examples
  • Loading branch information
nvaytet committed Oct 25, 2023
2 parents 39b5ec8 + 9e58405 commit 12723e7
Show file tree
Hide file tree
Showing 9 changed files with 653 additions and 84 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 13 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,20 +220,18 @@
# -- Options for nbsphinx gallery------------------------------------------
notebook_root = 'gallery'
thumbnail_root = os.path.join('_static', 'gallery')
gallery_notebooks = [
'nyc-taxi',
'masking-a-range',
'rectangle-selection',
'scatter3d-with-threshold',
'scatter3d-with-slider',
'interactive-masking',
'peeling-layers',
]
nbsphinx_thumbnails = {
os.path.join(notebook_root, 'nyc-taxi'): os.path.join(
thumbnail_root, 'nyc-taxi-thumbnail.png'
),
os.path.join(notebook_root, 'masking-a-range'): os.path.join(
thumbnail_root, 'masking-a-range-thumbnail.png'
),
os.path.join(notebook_root, 'rectangle-selection'): os.path.join(
thumbnail_root, 'rectangle-selection-thumbnail.png'
),
os.path.join(notebook_root, 'scatter3d-with-threshold'): os.path.join(
thumbnail_root, 'scatter3d-with-threshold-thumbnail.png'
),
os.path.join(notebook_root, 'scatter3d-with-slider'): os.path.join(
thumbnail_root, 'scatter3d-with-slider-thumbnail.png'
),
os.path.join(notebook_root, notebook): os.path.join(
thumbnail_root, f'{notebook}-thumbnail.png'
)
for notebook in gallery_notebooks
}
19 changes: 15 additions & 4 deletions docs/gallery/index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
{
"cell_type": "markdown",
"id": "ad3c84db-66fa-4438-9475-5099eacf34ba",
"metadata": {},
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": []
},
"source": [
"# Gallery"
]
Expand All @@ -12,6 +18,10 @@
"cell_type": "markdown",
"id": "6a6ec63f-51df-4bca-ab29-762f6d13420c",
"metadata": {
"editable": true,
"slideshow": {
"slide_type": ""
},
"tags": [
"nbsphinx-gallery"
]
Expand All @@ -21,7 +31,9 @@
"* [Masking a range](masking-a-range.ipynb)\n",
"* [Rectangle selection](rectangle-selection.ipynb)\n",
"* [3-D scatter plot with threshold](scatter3d-with-threshold.ipynb)\n",
"* [3-D scatter plot with slider](scatter3d-with-slider.ipynb)"
"* [3-D scatter plot with slider](scatter3d-with-slider.ipynb)\n",
"* [Interactive masking](interactive-masking.ipynb)\n",
"* [Peeling off the layers](peeling-layers.ipynb)"
]
}
],
Expand All @@ -40,8 +52,7 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.15"
"pygments_lexer": "ipython3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 12723e7

Please sign in to comment.