Skip to content

Commit cb7367a

Browse files
authored
feat: org babel python templates (#61)
* feat: org python templates A basic python template, one contaning `value` as a `:result` option, and another with `output`. * fix: shorten python to py_ This avoids any conflicts with auto-completion. * style: move lines Now the templates are on line 22, under the GNU Plot one, grouping the `src` blocks together.
1 parent 17ae488 commit cb7367a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

templates/org.eld

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ org-mode
1919
:post (org-edit-src-code))
2020
(gnplt & "#+begin_src gnuplot :var data=" (p "table") " :file " (p "plot.png") n r n "#+end_src"
2121
:post (org-edit-src-code))
22+
(py_ & "#+begin_src python" n r n "#+end_src"
23+
:post (org-edit-src-code))
24+
(py_vl & "#+begin_src python :results value" n r n "#+end_src"
25+
:post (org-edit-src-code))
26+
(py_otpt & "#+begin_src python :results output" n r n "#+end_src"
27+
:post (org-edit-src-code))
2228
(vrs & "#+begin_verse" n> r> n> "#+end_verse")
2329
(rdnly ":tangle yes :tangle-mode (identity #o444) :mkdirp yes" n)
2430
(oxhugo & ":PROPERTIES:" n ":EXPORT_FILE_NAME: " (p "Simple Filename") n ":EXPORT_DATE: "

0 commit comments

Comments
 (0)