From bea61e3c2e8f5d3129a5175ea47a81f7fe16e6f8 Mon Sep 17 00:00:00 2001 From: Al Chu11 Date: Thu, 16 Feb 2023 09:55:01 -0800 Subject: [PATCH] examples: remove unrendering code Problem: Some code at the bottom of the job submit example is not rendering properly. The code snippet is unnecessary, so remove it. Fixes #207 --- auto_examples/auto_examples_jupyter.zip | Bin 4819 -> 4230 bytes auto_examples/auto_examples_python.zip | Bin 1893 -> 1601 bytes auto_examples/example_job_submit_api.ipynb | 18 --------- auto_examples/example_job_submit_api.py | 11 ------ auto_examples/example_job_submit_api.py.md5 | 2 +- auto_examples/example_job_submit_api.rst | 36 ++---------------- .../example_job_submit_api_codeobj.pickle | Bin 2926 -> 1917 bytes auto_examples/sg_execution_times.rst | 4 +- examples/example_job_submit_api.py | 11 ------ 9 files changed, 7 insertions(+), 75 deletions(-) diff --git a/auto_examples/auto_examples_jupyter.zip b/auto_examples/auto_examples_jupyter.zip index ec3f5f788f8d91dfce093cf0d803c9cc82f0d467..9aa67f7c4710003c4e0b4c152c28661c013e2336 100644 GIT binary patch delta 86 zcmcbt+NLNS;LXe;!T7}IQceD5O~ihiy;lx1R<78 No+D()rX~R50RW8;62$-j delta 400 zcmZWlO-sWt7_K@LhmIk7a>Lh((1H{^I&k2{i^wJnPw|j8X&Y(tmL#%y+HFTKJq!K? z@$6sl;$QIxm~^;{FG+Ymp7(jevpD`fJsjU`wDvt0lm6&leO(`1?0KHMz51?u^gh_` z)VHl({jzfv3JrW#@x*Wj1|jC4xMW<}GF4at!$gBZH1&A*vwmIQnwQj61)4&{QT6OH zpc<;e5SiOGxCGQuMNJ+tp(HJN@K@7VyS}S4Zjvbr!Z0L~$P<|4_8;~%3@IuwIR_~c zZj+}nmQ)lluvk&jdFC{%UL;DzDO=G$qL6_jI0NEaV8%7^U0z^@Q6)3tJGoS3t9_m0 xG-#l9;3(-#=z#c`rWU+xHJH$ELlY0}k74I$t^d#1#_r|wR*$;po7&p#dA}WAd^rFB diff --git a/auto_examples/auto_examples_python.zip b/auto_examples/auto_examples_python.zip index cbf9109c120581dc60dc79c17c57ab7db60c61a3..b3bb330a096cd053b2cbcb7bc37bccba1bab89fa 100644 GIT binary patch delta 71 zcmaFLcaTRSz?+#xgaHH^`vStA#VXmaWo2Mk%eqnG469UtHzSh>GdAhTO6<05Pk<^J F7yxh35N-ef delta 372 zcmZutK}rKL6dkP{C5Udi5fwgD3KNjo3QEC!7j{wIXC|4M$Rs}`kyc#v5Iu(rkKhpm zui!PrWW?gaPd>bt{P$k?Z-<{pr}NohZvrD zLRKM_6^w7aA5iK%$}b@6$6OXrhYc1+H(7|OWwVvuxE7arKSxP)V=L+M4C^}k;r%ipN*8l(j diff --git a/auto_examples/example_job_submit_api.ipynb b/auto_examples/example_job_submit_api.ipynb index cf33503a..188e48ac 100644 --- a/auto_examples/example_job_submit_api.ipynb +++ b/auto_examples/example_job_submit_api.ipynb @@ -136,24 +136,6 @@ "source": [ "print(flux.job.submit(handle, jobspec))" ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "This is expected to be rendered from docs root\n\n" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "collapsed": false - }, - "outputs": [], - "source": [ - "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()" - ] } ], "metadata": { diff --git a/auto_examples/example_job_submit_api.py b/auto_examples/example_job_submit_api.py index fe00ba91..eb3241af 100644 --- a/auto_examples/example_job_submit_api.py +++ b/auto_examples/example_job_submit_api.py @@ -44,14 +44,3 @@ # This could have easily been a script, e.g., ./compute.py 120 # You can continue submitting jobs to your same handle, even the same job. print(flux.job.submit(handle, jobspec)) - -#%% -# This is expected to be rendered from docs root -import matplotlib.pyplot as plt -here = os.path.dirname(os.path.abspath(os.getcwd())) - -# This is here for the nice thumbnail :) -image = plt.imread(os.path.join(here, "images", "logo.png")) -fig = plt.imshow(image) -plt.axis("off") -plt.show() \ No newline at end of file diff --git a/auto_examples/example_job_submit_api.py.md5 b/auto_examples/example_job_submit_api.py.md5 index 8e81e48e..41d0b69d 100644 --- a/auto_examples/example_job_submit_api.py.md5 +++ b/auto_examples/example_job_submit_api.py.md5 @@ -1 +1 @@ -a694dd5d8adac2dbfa1407e47b12486b \ No newline at end of file +42d8779e36830e8a9638cc47f8657259 \ No newline at end of file diff --git a/auto_examples/example_job_submit_api.rst b/auto_examples/example_job_submit_api.rst index ac43efcc..548b51d6 100644 --- a/auto_examples/example_job_submit_api.rst +++ b/auto_examples/example_job_submit_api.rst @@ -135,7 +135,7 @@ Let's submit the job! We will get the job id. .. code-block:: none - ƒtGzAJj + ƒ2a3ptoH @@ -145,7 +145,7 @@ Let's submit the job! We will get the job id. This could have easily been a script, e.g., ./compute.py 120 You can continue submitting jobs to your same handle, even the same job. -.. GENERATED FROM PYTHON SOURCE LINES 46-48 +.. GENERATED FROM PYTHON SOURCE LINES 46-47 .. code-block:: default @@ -154,39 +154,11 @@ You can continue submitting jobs to your same handle, even the same job. - .. rst-class:: sphx-glr-script-out .. code-block:: none - ƒtv3rMM - - - - -.. GENERATED FROM PYTHON SOURCE LINES 49-50 - -This is expected to be rendered from docs root - -.. GENERATED FROM PYTHON SOURCE LINES 50-57 - -.. code-block:: default - - import matplotlib.pyplot as plt - here = os.path.dirname(os.path.abspath(os.getcwd())) - - # This is here for the nice thumbnail :) - image = plt.imread(os.path.join(here, "images", "logo.png")) - fig = plt.imshow(image) - plt.axis("off") - plt.show() - - -.. image-sg:: /auto_examples/images/sphx_glr_example_job_submit_api_001.png - :alt: example job submit api - :srcset: /auto_examples/images/sphx_glr_example_job_submit_api_001.png - :class: sphx-glr-single-img - + ƒ2afQbZZ @@ -194,7 +166,7 @@ This is expected to be rendered from docs root .. rst-class:: sphx-glr-timing - **Total running time of the script:** ( 0 minutes 0.770 seconds) + **Total running time of the script:** ( 0 minutes 0.137 seconds) .. _sphx_glr_download_auto_examples_example_job_submit_api.py: diff --git a/auto_examples/example_job_submit_api_codeobj.pickle b/auto_examples/example_job_submit_api_codeobj.pickle index 329b0372792dc631630d7c7b91f48ee083c36d8b..a8b0ff754107eae2f8213d32da490245eb593868 100644 GIT binary patch delta 173 zcmaDS_Lq;ffpuyT`$X1nlLfd;CTlSAO%CGHp4`Rkz^FX=G_yRT+T_>FR~U^aA7HU& zGy{@qd>m;xr4@Qv`AJhUxHBv#8?fp#+DuMhHD$D)yp!FW(Pi>Sc6lE64BpNRzRuFr z9^tIX51E7~D>7|h44Ev(tUCESQzv8m|}fPO73o$F{OF{o>Vsb literal 2926 zcmbtWzi-qq6h<_6xofTzC}rr%QX~|KkrAmN6(J!pAR$pjxx`nyO5!L#+UtPCz(6HS z3>dK@v9PeRBC)Wt^55|6I8NNVwBhJdpYy)=eSYuxJ--=z44fw zSAFGdQhoDsOtXTsQEdTBl6yhq=Q%%P4y@5UjYvQWepUhxw%ZhV+(Kff{bS<{Ut5l_ z1Q*8+-o}*?Vxu%FTz^h-bsAt9&B{ccp9_*{Nuq*4EC9BnV3it6!ocQ6>=$W7i-=6! z^i-_Cc2{OJSw>?opmFRcE!r-FKDmC^+`tRmbjGe9T!-%^-e@6i)!8W6Jh#a=&* z);BfmC+BtDtUF-cBcX%Bl|(vKYcq1#l*9Pp9Oe7+PK!gedQWxH;o>aWG@7E}VZHGn zXcJ94shiXhB}v2I-5ztJ_$&zniA_sd)}EZBYHYYh&2Kc-DfT8N9hc{ zHBRQ#6}E!3^VmMZ&SSK!_c~W&SwoM-csr0&`NBEIjpJAn1|imdKWV>13_Sq`xpu0J zt9~EQ47tii6rPk}Y_<=>wY>u^iesBW?}@*Y*wTZBio z{vQUXU1J)9pUMESO_@fxm~LK9V|ak|h}