##// END OF EJS Templates
Add doc about the format for storing interactive sessions....
Fernando Perez -
Show More
@@ -0,0 +1,52 b''
1 ===============================
2 IPython session storage notes
3 ===============================
4
5 This document serves as a sample/template for ideas on how to store session
6 data on disk. This stems from discussions we had on various mailing lists.
7
8 The frontend would store, for now, 5 types of data:
9
10 #. Input: this is python/ipython code to be executed.
11
12 #. Output (python): result of executing Inputs.
13
14 #. Standard output: from subprocesses.
15
16 #. Standard error: from subprocesses.
17
18 #. Text: arbitrary text. For now, we'll just store plain text and will defer
19 to the user on how to format it, though it should be valid reST if it is
20 later to be converted into html/pdf.
21
22 The non-text cells would be stored on-disk as follows::
23
24 .. input-cell::
25 :id: 1
26
27 3+3
28
29 .. output-cell::
30 :id: 1
31
32 6
33
34 .. input-cell::
35 :id: 2
36
37 ls
38
39 .. stdout-cell::
40 :id: 2
41
42 a.py b.py
43
44 .. input-cell::
45 :id: 3
46
47 !askdfj
48
49 .. stderr-cell::
50 :id: 3
51
52 sh: askdfj: command not found
General Comments 0
You need to be logged in to leave comments. Login now