Add python/ipython snippets for org-mode (#193)

* Add python/ipython snippets for org-mode

* Simplify temp filename creation in org-mode/ipython
This commit is contained in:
Davide Restivo 2018-06-16 19:09:43 +02:00 committed by Andrea Crotti
parent c4bc16ea7b
commit a5fac2b876
2 changed files with 14 additions and 0 deletions

7
org-mode/ipython Normal file
View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: ipython
# key: ipy_
# --
#+BEGIN_SRC ipython :session ${1:session01} :file ${2:$$(concat (make-temp-name "./ipython-") ".png")} :exports ${3:both}
$0
#+END_SRC

7
org-mode/python Normal file
View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: python
# key: py_
# --
#+BEGIN_SRC python
$0
#+END_SRC