Skip to content

Commit a5fac2b

Browse files
daviderestivoAndreaCrotti
authored andcommitted
Add python/ipython snippets for org-mode (#193)
* Add python/ipython snippets for org-mode * Simplify temp filename creation in org-mode/ipython
1 parent c4bc16e commit a5fac2b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

org-mode/ipython

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# -*- mode: snippet -*-
2+
# name: ipython
3+
# key: ipy_
4+
# --
5+
#+BEGIN_SRC ipython :session ${1:session01} :file ${2:$$(concat (make-temp-name "./ipython-") ".png")} :exports ${3:both}
6+
$0
7+
#+END_SRC

org-mode/python

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# -*- mode: snippet -*-
2+
# name: python
3+
# key: py_
4+
# --
5+
#+BEGIN_SRC python
6+
$0
7+
#+END_SRC

0 commit comments

Comments
 (0)