Skip to content

Commit 7412532

Browse files
authored
Merge pull request #209 from chu11/python_api_example_rendering
examples: remove unrendering code
2 parents 438c84f + bea61e3 commit 7412532

9 files changed

+7
-75
lines changed
-589 Bytes
Binary file not shown.
-292 Bytes
Binary file not shown.

auto_examples/example_job_submit_api.ipynb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -136,24 +136,6 @@
136136
"source": [
137137
"print(flux.job.submit(handle, jobspec))"
138138
]
139-
},
140-
{
141-
"cell_type": "markdown",
142-
"metadata": {},
143-
"source": [
144-
"This is expected to be rendered from docs root\n\n"
145-
]
146-
},
147-
{
148-
"cell_type": "code",
149-
"execution_count": null,
150-
"metadata": {
151-
"collapsed": false
152-
},
153-
"outputs": [],
154-
"source": [
155-
"import matplotlib.pyplot as plt\nhere = os.path.dirname(os.path.abspath(os.getcwd()))\n\n# This is here for the nice thumbnail :)\nimage = plt.imread(os.path.join(here, \"images\", \"logo.png\"))\nfig = plt.imshow(image)\nplt.axis(\"off\")\nplt.show()"
156-
]
157139
}
158140
],
159141
"metadata": {

auto_examples/example_job_submit_api.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,3 @@
4444
# This could have easily been a script, e.g., ./compute.py 120
4545
# You can continue submitting jobs to your same handle, even the same job.
4646
print(flux.job.submit(handle, jobspec))
47-
48-
#%%
49-
# This is expected to be rendered from docs root
50-
import matplotlib.pyplot as plt
51-
here = os.path.dirname(os.path.abspath(os.getcwd()))
52-
53-
# This is here for the nice thumbnail :)
54-
image = plt.imread(os.path.join(here, "images", "logo.png"))
55-
fig = plt.imshow(image)
56-
plt.axis("off")
57-
plt.show()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a694dd5d8adac2dbfa1407e47b12486b
1+
42d8779e36830e8a9638cc47f8657259

auto_examples/example_job_submit_api.rst

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Let's submit the job! We will get the job id.
135135

136136
.. code-block:: none
137137
138-
ƒtGzAJj
138+
ƒ2a3ptoH
139139
140140
141141
@@ -145,7 +145,7 @@ Let's submit the job! We will get the job id.
145145
This could have easily been a script, e.g., ./compute.py 120
146146
You can continue submitting jobs to your same handle, even the same job.
147147

148-
.. GENERATED FROM PYTHON SOURCE LINES 46-48
148+
.. GENERATED FROM PYTHON SOURCE LINES 46-47
149149
150150
.. code-block:: default
151151
@@ -154,47 +154,19 @@ You can continue submitting jobs to your same handle, even the same job.
154154
155155
156156
157-
158157
.. rst-class:: sphx-glr-script-out
159158

160159
.. code-block:: none
161160
162-
ƒtv3rMM
163-
164-
165-
166-
167-
.. GENERATED FROM PYTHON SOURCE LINES 49-50
168-
169-
This is expected to be rendered from docs root
170-
171-
.. GENERATED FROM PYTHON SOURCE LINES 50-57
172-
173-
.. code-block:: default
174-
175-
import matplotlib.pyplot as plt
176-
here = os.path.dirname(os.path.abspath(os.getcwd()))
177-
178-
# This is here for the nice thumbnail :)
179-
image = plt.imread(os.path.join(here, "images", "logo.png"))
180-
fig = plt.imshow(image)
181-
plt.axis("off")
182-
plt.show()
183-
184-
185-
.. image-sg:: /auto_examples/images/sphx_glr_example_job_submit_api_001.png
186-
:alt: example job submit api
187-
:srcset: /auto_examples/images/sphx_glr_example_job_submit_api_001.png
188-
:class: sphx-glr-single-img
189-
161+
ƒ2afQbZZ
190162
191163
192164
193165
194166
195167
.. rst-class:: sphx-glr-timing
196168

197-
**Total running time of the script:** ( 0 minutes 0.770 seconds)
169+
**Total running time of the script:** ( 0 minutes 0.137 seconds)
198170

199171

200172
.. _sphx_glr_download_auto_examples_example_job_submit_api.py:
-1009 Bytes
Binary file not shown.

auto_examples/sg_execution_times.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
Computation times
77
=================
8-
**00:00.770** total execution time for **auto_examples** files:
8+
**00:00.137** total execution time for **auto_examples** files:
99

1010
+-----------------------------------------------------------------------------------------+-----------+--------+
11-
| :ref:`sphx_glr_auto_examples_example_job_submit_api.py` (``example_job_submit_api.py``) | 00:00.770 | 0.0 MB |
11+
| :ref:`sphx_glr_auto_examples_example_job_submit_api.py` (``example_job_submit_api.py``) | 00:00.137 | 0.0 MB |
1212
+-----------------------------------------------------------------------------------------+-----------+--------+

examples/example_job_submit_api.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,3 @@
4444
# This could have easily been a script, e.g., ./compute.py 120
4545
# You can continue submitting jobs to your same handle, even the same job.
4646
print(flux.job.submit(handle, jobspec))
47-
48-
#%%
49-
# This is expected to be rendered from docs root
50-
import matplotlib.pyplot as plt
51-
here = os.path.dirname(os.path.abspath(os.getcwd()))
52-
53-
# This is here for the nice thumbnail :)
54-
image = plt.imread(os.path.join(here, "images", "logo.png"))
55-
fig = plt.imshow(image)
56-
plt.axis("off")
57-
plt.show()

0 commit comments

Comments
 (0)