Skip to content

Commit dbfc644

Browse files
committed
Smoke tests
1 parent 9b41cc9 commit dbfc644

File tree

8 files changed

+132
-90
lines changed

8 files changed

+132
-90
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Included Resource Test
3+
author: Charles Teague
4+
date: last-modified
5+
code-fold: true
6+
keep-hidden: true
7+
---
8+
9+
### A simple include example, using tag
10+
11+
{{< embed "subfolder/plots.ipynb#plot-line" >}}
12+
13+
### A simple include example, using label
14+
15+
{{< embed subfolder/plots.ipynb#plot-dot >}}
16+
17+
### A simple include example, using index
18+
19+
{{< embed subfolder/plots.ipynb[2] >}}
20+
21+
### Index ranges
22+
23+
{{< embed subfolder/plots.ipynb[2-4,1] >}}
24+
25+
### Multiple Ids
26+
27+
{{< embed subfolder/plots.ipynb#plot-dot,plot-line >}}
28+
29+
### Whole notebook
30+
31+
{{< embed subfolder/plots.ipynb#plot-dot,plot-line >}}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Included Resource Test
3+
author: Charles Teague
4+
date: last-modified
5+
code-fold: true
6+
keep-hidden: true
7+
---
8+
9+
### A simple include example, using tag
10+
11+
{{< embed plots.ipynb#plot-line >}}
12+
13+
### A simple include example, using label
14+
15+
{{< embed plots.ipynb#plot-dot >}}
16+
17+
### A simple include example, using index
18+
19+
{{< embed plots.ipynb[2] >}}
20+
21+
### Index ranges
22+
23+
{{< embed plots.ipynb[2-4,1] >}}
24+
25+
### Multiple Ids
26+
27+
{{< embed plots.ipynb#plot-dot,plot-line >}}
28+
29+
### Whole notebook
30+
31+
{{< embed plots.ipynb#plot-dot,plot-line >}}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Included Resource Test
3+
author: Charles Teague
4+
date: last-modified
5+
code-fold: true
6+
keep-hidden: true
7+
---
8+
9+
### A simple include example, using tag
10+
11+
{{< include "subfolder/plots.ipynb#plot-line" >}}
12+
13+
### A simple include example, using label
14+
15+
{{< include subfolder/plots.ipynb#plot-dot >}}
16+
17+
### A simple include example, using index
18+
19+
{{< include subfolder/plots.ipynb[2] >}}
20+
21+
### Index ranges
22+
23+
{{< include subfolder/plots.ipynb[2-4,1] >}}
24+
25+
### Multiple Ids
26+
27+
{{< include subfolder/plots.ipynb#plot-dot,plot-line >}}
28+
29+
### Whole notebook
30+
31+
{{< include subfolder/plots.ipynb#plot-dot,plot-line >}}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Included Resource Test
3+
author: Charles Teague
4+
date: last-modified
5+
code-fold: true
6+
keep-hidden: true
7+
---
8+
9+
### A simple include example, using tag
10+
11+
{{< include plots.ipynb#plot-line >}}
12+
13+
### A simple include example, using label
14+
15+
{{< include plots.ipynb#plot-dot >}}
16+
17+
### A simple include example, using index
18+
19+
{{< include plots.ipynb[2] >}}
20+
21+
### Index ranges
22+
23+
{{< include plots.ipynb[2-4,1] >}}
24+
25+
### Multiple Ids
26+
27+
{{< include plots.ipynb#plot-dot,plot-line >}}
28+
29+
### Whole notebook
30+
31+
{{< include plots.ipynb#plot-dot,plot-line >}}

tests/docs/smoke-all/2022/10/31/include-notebook/plots.ipynb

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"id": "3d8a9364",
77
"metadata": {
88
"tags": [
9-
"plot-line",
10-
"hide-code"
9+
"plot-line"
1110
]
1211
},
1312
"outputs": [
@@ -50,6 +49,8 @@
5049
}
5150
],
5251
"source": [
52+
"#| label: plot-dot\n",
53+
"\n",
5354
"import matplotlib.pyplot as plt\n",
5455
"x=[3,4,5,6,7,8,9,10,11,12]\n",
5556
"y= [9,16,25,36,49,64,81,100,121,144]\n",
@@ -108,37 +109,6 @@
108109
"plt.show()"
109110
]
110111
},
111-
{
112-
"cell_type": "code",
113-
"execution_count": 8,
114-
"id": "b1ef80f0",
115-
"metadata": {},
116-
"outputs": [
117-
{
118-
"ename": "ModuleNotFoundError",
119-
"evalue": "No module named 'ipyleaflet'",
120-
"output_type": "error",
121-
"traceback": [
122-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
123-
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
124-
"Cell \u001b[0;32mIn [8], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mipyleaflet\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Map, Marker, basemaps, basemap_to_tiles\n\u001b[1;32m 2\u001b[0m m \u001b[38;5;241m=\u001b[39m Map(\n\u001b[1;32m 3\u001b[0m basemap\u001b[38;5;241m=\u001b[39mbasemap_to_tiles(\n\u001b[1;32m 4\u001b[0m basemaps\u001b[38;5;241m.\u001b[39mNASAGIBS\u001b[38;5;241m.\u001b[39mModisTerraTrueColorCR, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m2017-04-08\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 7\u001b[0m zoom\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m4\u001b[39m\n\u001b[1;32m 8\u001b[0m )\n\u001b[1;32m 9\u001b[0m m\u001b[38;5;241m.\u001b[39madd_layer(Marker(location\u001b[38;5;241m=\u001b[39m(\u001b[38;5;241m52.204793\u001b[39m, \u001b[38;5;241m360.121558\u001b[39m)))\n",
125-
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'ipyleaflet'"
126-
]
127-
}
128-
],
129-
"source": [
130-
"from ipyleaflet import Map, Marker, basemaps, basemap_to_tiles\n",
131-
"m = Map(\n",
132-
" basemap=basemap_to_tiles(\n",
133-
" basemaps.NASAGIBS.ModisTerraTrueColorCR, \"2017-04-08\"\n",
134-
" ),\n",
135-
" center=(52.204793, 360.121558),\n",
136-
" zoom=4\n",
137-
")\n",
138-
"m.add_layer(Marker(location=(52.204793, 360.121558)))\n",
139-
"m"
140-
]
141-
},
142112
{
143113
"cell_type": "code",
144114
"execution_count": null,
@@ -150,7 +120,7 @@
150120
],
151121
"metadata": {
152122
"kernelspec": {
153-
"display_name": "Python 3 (ipykernel)",
123+
"display_name": "Python 3",
154124
"language": "python",
155125
"name": "python3"
156126
},

tests/docs/smoke-all/2022/10/31/include-notebook/subfolder/plots.ipynb

Lines changed: 4 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"id": "3d8a9364",
77
"metadata": {
88
"tags": [
9-
"plot-line",
10-
"hide-code"
9+
"plot-line"
1110
]
1211
},
1312
"outputs": [
@@ -50,6 +49,8 @@
5049
}
5150
],
5251
"source": [
52+
"#| label: plot-dot\n",
53+
"\n",
5354
"import matplotlib.pyplot as plt\n",
5455
"x=[3,4,5,6,7,8,9,10,11,12]\n",
5556
"y= [9,16,25,36,49,64,81,100,121,144]\n",
@@ -108,37 +109,6 @@
108109
"plt.show()"
109110
]
110111
},
111-
{
112-
"cell_type": "code",
113-
"execution_count": 8,
114-
"id": "b1ef80f0",
115-
"metadata": {},
116-
"outputs": [
117-
{
118-
"ename": "ModuleNotFoundError",
119-
"evalue": "No module named 'ipyleaflet'",
120-
"output_type": "error",
121-
"traceback": [
122-
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
123-
"\u001b[0;31mModuleNotFoundError\u001b[0m Traceback (most recent call last)",
124-
"Cell \u001b[0;32mIn [8], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mipyleaflet\u001b[39;00m \u001b[38;5;28;01mimport\u001b[39;00m Map, Marker, basemaps, basemap_to_tiles\n\u001b[1;32m 2\u001b[0m m \u001b[38;5;241m=\u001b[39m Map(\n\u001b[1;32m 3\u001b[0m basemap\u001b[38;5;241m=\u001b[39mbasemap_to_tiles(\n\u001b[1;32m 4\u001b[0m basemaps\u001b[38;5;241m.\u001b[39mNASAGIBS\u001b[38;5;241m.\u001b[39mModisTerraTrueColorCR, \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m2017-04-08\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m (...)\u001b[0m\n\u001b[1;32m 7\u001b[0m zoom\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m4\u001b[39m\n\u001b[1;32m 8\u001b[0m )\n\u001b[1;32m 9\u001b[0m m\u001b[38;5;241m.\u001b[39madd_layer(Marker(location\u001b[38;5;241m=\u001b[39m(\u001b[38;5;241m52.204793\u001b[39m, \u001b[38;5;241m360.121558\u001b[39m)))\n",
125-
"\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'ipyleaflet'"
126-
]
127-
}
128-
],
129-
"source": [
130-
"from ipyleaflet import Map, Marker, basemaps, basemap_to_tiles\n",
131-
"m = Map(\n",
132-
" basemap=basemap_to_tiles(\n",
133-
" basemaps.NASAGIBS.ModisTerraTrueColorCR, \"2017-04-08\"\n",
134-
" ),\n",
135-
" center=(52.204793, 360.121558),\n",
136-
" zoom=4\n",
137-
")\n",
138-
"m.add_layer(Marker(location=(52.204793, 360.121558)))\n",
139-
"m"
140-
]
141-
},
142112
{
143113
"cell_type": "code",
144114
"execution_count": null,
@@ -150,7 +120,7 @@
150120
],
151121
"metadata": {
152122
"kernelspec": {
153-
"display_name": "Python 3 (ipykernel)",
123+
"display_name": "Python 3",
154124
"language": "python",
155125
"name": "python3"
156126
},

tests/docs/smoke-all/2022/10/31/include-notebook/test-sub.qmd

Lines changed: 0 additions & 11 deletions
This file was deleted.

tests/docs/smoke-all/2022/10/31/include-notebook/test.qmd

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)