mirror of
https://github.com/vale981/emacs-ipython-notebook
synced 2025-03-06 01:21:38 -05:00
Update
This commit is contained in:
parent
01bd92560c
commit
6f8e34cdbf
4 changed files with 324 additions and 64 deletions
|
@ -215,7 +215,7 @@ port or URL of the IPython notebook server.
|
|||
.. el:function:: ein:notebooklist-open
|
||||
.. el:function:: ein:notebooklist-new-notebook
|
||||
.. el:function:: ein:notebooklist-open-notebook-global
|
||||
.. el:function:: ein:notebooklist-new-scratch-notebook
|
||||
.. el:function:: ein:junk-new
|
||||
|
||||
.. el:keymap:: ein:notebooklist-mode-map
|
||||
:exclude: widget-button
|
||||
|
@ -230,7 +230,7 @@ The following keybinds are available in notebook buffers.
|
|||
.. el:keymap:: ein:notebook-mode-map
|
||||
|
||||
.. el:function:: ein:worksheet-delete-cell
|
||||
.. el:function:: ein:notebook-rename-to-scratch-command
|
||||
.. el:function:: ein:junk-rename
|
||||
.. el:function:: ein:notebook-kill-all-buffers
|
||||
.. el:function:: ein:iexec-mode
|
||||
|
||||
|
@ -317,17 +317,18 @@ Notebook list
|
|||
Notebook
|
||||
^^^^^^^^
|
||||
|
||||
.. el:variable:: ein:notebook-enable-undo
|
||||
.. el:variable:: ein:notebook-discard-output-on-save
|
||||
.. el:variable:: ein:worksheet-enable-undo
|
||||
.. el:variable:: ein:notebook-modes
|
||||
.. el:variable:: ein:notebook-kill-buffer-ask
|
||||
.. el:variable:: ein:notebook-querty-timeout-open
|
||||
.. el:variable:: ein:notebook-querty-timeout-save
|
||||
.. el:variable:: ein:cell-traceback-level
|
||||
.. el:variable:: ein:cell-autoexec-prompt
|
||||
.. el:variable:: ein:scratch-notebook-name-template
|
||||
.. el:variable:: ein:junk-notebook-name-template
|
||||
.. el:variable:: ein:iexec-delay
|
||||
.. el:variable:: ein:complete-on-dot
|
||||
.. el:variable:: ein:output-type-preference
|
||||
.. el:variable:: ein:shr-env
|
||||
|
||||
Console
|
||||
^^^^^^^
|
||||
|
@ -498,6 +499,26 @@ Change Log
|
|||
v0.2
|
||||
----
|
||||
|
||||
* Preliminary support for multiple worksheets.
|
||||
* Rename notion of "scratch notebook" to "junk notebook".
|
||||
This is to avoid confusion with newly added "scratch sheet".
|
||||
Old commands are renamed to :el:symbol:`ein:junk-new` and
|
||||
:el:symbol:`ein:junk-rename`.
|
||||
* Preferred MIME types to be used can be configured using the variable
|
||||
:el:symbol:`ein:output-type-preference`.
|
||||
* HTML content is rendered SHR (Simple HTML Renderer) by default.
|
||||
Use :el:symbol:`ein:shr-env` to tweak how HTML rendered.
|
||||
* :el:symbol:`ein:notebook-discard-output-on-save` is obsolete now.
|
||||
* Support execution history. Commands
|
||||
:el:symbol:`ein:worksheet-previous-input-history` and
|
||||
:el:symbol:`ein:worksheet-next-input-history` can be used
|
||||
to insert previously executed code into the current cell.
|
||||
* Add :el:symbol:`ein:pseudo-console-mode`.
|
||||
* Add "scratch sheet". This acts almost as same as worksheet, but you
|
||||
don't need to save it. You can use try any code without saving
|
||||
junks in your notebook. Use the command
|
||||
:el:symbol:`ein:notebook-scratchsheet-open` to open scratch sheet.
|
||||
* Menu support in notebook mode and notebook list mode.
|
||||
* Auto-connection support.
|
||||
The new function :el:symbol:`ein:connect-to-default-notebook` can be
|
||||
added to :el:symbol:`python-mode-hook` to automatically connect
|
||||
|
@ -508,7 +529,6 @@ v0.2
|
|||
* Change the timing to trigger auto-execution in connected buffer.
|
||||
It was triggered on save before. Now it is on run, eval or reload.
|
||||
See :el:symbol:`ein:connect-toggle-autoexec`.
|
||||
* [WIP] Worksheet support.
|
||||
|
||||
|
||||
v0.1.2
|
||||
|
|
|
@ -146,6 +146,18 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:junk-new">ein:junk-new (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:junk-notebook-name-template">ein:junk-notebook-name-template (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:junk-rename">ein:junk-rename (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:load-dev">ein:load-dev (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
@ -169,6 +181,8 @@
|
|||
<dt><a href="index.html#ein:mumamo-markdowncell-mode">ein:mumamo-markdowncell-mode (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="index.html#ein:mumamo-rawcell-mode">ein:mumamo-rawcell-mode (Lisp variable)</a>
|
||||
</dt>
|
||||
|
@ -177,16 +191,6 @@
|
|||
<dt><a href="index.html#ein:mumamo-textcell-mode">ein:mumamo-textcell-mode (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="index.html#ein:notebook-discard-output-on-save">ein:notebook-discard-output-on-save (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:notebook-enable-undo">ein:notebook-enable-undo (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:notebook-kill-all-buffers">ein:notebook-kill-all-buffers (Lisp function)</a>
|
||||
</dt>
|
||||
|
@ -208,10 +212,6 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:notebook-rename-to-scratch-command">ein:notebook-rename-to-scratch-command (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:notebooklist-load">ein:notebooklist-load (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
@ -220,10 +220,6 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:notebooklist-new-scratch-notebook">ein:notebooklist-new-scratch-notebook (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:notebooklist-open">ein:notebooklist-open (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
@ -232,6 +228,10 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:output-type-preference">ein:output-type-preference (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:propagate-connect">ein:propagate-connect (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
@ -256,11 +256,11 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:scratch-notebook-name-template">ein:scratch-notebook-name-template (Lisp variable)</a>
|
||||
<dt><a href="index.html#ein:shared-output-pop-to-buffer">ein:shared-output-pop-to-buffer (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:shared-output-pop-to-buffer">ein:shared-output-pop-to-buffer (Lisp function)</a>
|
||||
<dt><a href="index.html#ein:shr-env">ein:shr-env (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
|
@ -291,6 +291,10 @@
|
|||
<dt><a href="index.html#ein:worksheet-delete-cell">ein:worksheet-delete-cell (Lisp function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="index.html#ein:worksheet-enable-undo">ein:worksheet-enable-undo (Lisp variable)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
</tr></table>
|
||||
|
||||
|
|
310
index.html
310
index.html
|
@ -298,11 +298,14 @@ Notebook is specified by a string NBPATH whose format is
|
|||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="ein:notebooklist-new-scratch-notebook">
|
||||
<em class="property">function </em><tt class="descname">ein:notebooklist-new-scratch-notebook</tt><a class="headerlink" href="#ein:notebooklist-new-scratch-notebook" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="ein:junk-new">
|
||||
<em class="property">function </em><big>(</big><tt class="descname">ein:junk-new </tt><em>name</em> <em>url-or-port</em><big>)</big><a class="headerlink" href="#ein:junk-new" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Open a notebook to try random thing.
|
||||
Notebook name is determined based on
|
||||
<a class="reference internal" href="#ein:scratch-notebook-name-template" title="ein:scratch-notebook-name-template"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:scratch-notebook-name-template</span></tt></a>.</p>
|
||||
<a class="reference internal" href="#ein:junk-notebook-name-template" title="ein:junk-notebook-name-template"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:junk-notebook-name-template</span></tt></a>.</p>
|
||||
<p>When any prefix argument is given, this command asks notebook
|
||||
name to be used. When two universal prefix arguments (i.e.,
|
||||
<tt class="docutils literal"><span class="pre">C-u</span> <span class="pre">C-u</span></tt>) are given, this command asks URL or port to use.</p>
|
||||
</dd></dl>
|
||||
|
||||
<p>Keymap for <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebooklist-mode</span></tt>.</p>
|
||||
|
@ -444,6 +447,31 @@ kill-ring of Emacs (kill-ring for texts).</p>
|
|||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c M-{</tt><tt class="descclassname"> ein:notebook-worksheet-move-prev</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Switch the current worksheet with the previous one.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c M-}</tt><tt class="descclassname"> ein:notebook-worksheet-move-next</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Switch the current worksheet with the previous one.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c M-+</tt><tt class="descclassname"> ein:notebook-worksheet-insert-prev</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Insert a new worksheet before this worksheet and open it.
|
||||
See also <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-worksheet-insert-next</span></tt>.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c C-w</tt><tt class="descclassname"> ein:worksheet-copy-cell</tt></dt>
|
||||
|
@ -562,7 +590,7 @@ pager buffer. You can explicitly specify the object by selecting it.</p>
|
|||
<dt>
|
||||
<tt class="descname">C-c C-x</tt><tt class="descclassname"> ein:tb-show</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Popup traceback viewer.</p>
|
||||
<dd><dd class="first last"><p>Show full traceback in traceback viewer.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
|
@ -593,6 +621,14 @@ as usual.</p>
|
|||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c C-#</tt><tt class="descclassname"> ein:notebook-close</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Close NOTEBOOK and kill its buffer.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c C-o</tt><tt class="descclassname"> ein:console-open</tt></dt>
|
||||
|
@ -626,6 +662,140 @@ given, open the last point in the other window.</p>
|
|||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c C-/</tt><tt class="descclassname"> ein:notebook-scratchsheet-open</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open “scratch sheet”.
|
||||
Open a new one when prefix argument is given.
|
||||
Scratch sheet is almost identical to worksheet. However, EIN
|
||||
will not save the buffer. Use this buffer like of normal IPython
|
||||
console. Note that you can always copy cells into the normal
|
||||
worksheet to save result.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c !</tt><tt class="descclassname"> ein:worksheet-rename-sheet</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Change worksheet name (<em>not</em> notebook name).</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c {</tt><tt class="descclassname"> ein:notebook-worksheet-open-prev-or-last</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open previous or last worksheet.
|
||||
See also <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-worksheet-open-next-or-first</span></tt> and
|
||||
<tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-worksheet-open-prev</span></tt>.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c }</tt><tt class="descclassname"> ein:notebook-worksheet-open-next-or-first</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open next or first worksheet.</p>
|
||||
<p>Try to open the worksheet to the worksheet WS using the function
|
||||
<tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-worksheet-open-next</span></tt>, open the first worksheet if
|
||||
not found.</p>
|
||||
<p>SHOW is a function to be called with the worksheet buffer if
|
||||
given.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c +</tt><tt class="descclassname"> ein:notebook-worksheet-insert-next</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Insert a new worksheet after this worksheet and open it.
|
||||
See also <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-worksheet-insert-prev</span></tt>.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c -</tt><tt class="descclassname"> ein:notebook-worksheet-delete</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Delete the current worksheet.
|
||||
When used as a lisp function, delete worksheet WS from NOTEBOOk.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 1</tt><tt class="descclassname"> ein:notebook-worksheet-open-1th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 1-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 2</tt><tt class="descclassname"> ein:notebook-worksheet-open-2th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 2-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 3</tt><tt class="descclassname"> ein:notebook-worksheet-open-3th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 3-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 4</tt><tt class="descclassname"> ein:notebook-worksheet-open-4th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 4-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 5</tt><tt class="descclassname"> ein:notebook-worksheet-open-5th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 5-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 6</tt><tt class="descclassname"> ein:notebook-worksheet-open-6th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 6-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 7</tt><tt class="descclassname"> ein:notebook-worksheet-open-7th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 7-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 8</tt><tt class="descclassname"> ein:notebook-worksheet-open-8th</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open 8-th worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c 9</tt><tt class="descclassname"> ein:notebook-worksheet-open-last</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open the last worksheet.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">M-RET</tt><tt class="descclassname"> ein:worksheet-execute-cell-and-goto-next</tt></dt>
|
||||
|
@ -656,6 +826,28 @@ given, open the last point in the other window.</p>
|
|||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">M-p</tt><tt class="descclassname"> ein:worksheet-previous-input-history</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Insert the previous input in the execution history.
|
||||
You can go back further in the history by repeating this command.
|
||||
Use <tt class="xref el el-symbol docutils literal"><span class="pre">ein:worksheet-next-input-history</span></tt> to go forward in the
|
||||
history.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">M-n</tt><tt class="descclassname"> ein:worksheet-next-input-history</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Insert next input in the execution history.
|
||||
You can go forward further in the history by repeating this
|
||||
command. Use <tt class="xref el el-symbol docutils literal"><span class="pre">ein:worksheet-previous-input-history</span></tt> to go back
|
||||
in the history.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname"><M-S-return></tt><tt class="descclassname"> ein:worksheet-execute-cell-and-insert-below</tt></dt>
|
||||
|
@ -728,9 +920,9 @@ deletion. Use kill to play on the safe side.</p>
|
|||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="ein:notebook-rename-to-scratch-command">
|
||||
<em class="property">function </em><big>(</big><tt class="descname">ein:notebook-rename-to-scratch-command </tt><em>name</em><big>)</big><a class="headerlink" href="#ein:notebook-rename-to-scratch-command" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Rename notebook based on <a class="reference internal" href="#ein:scratch-notebook-name-template" title="ein:scratch-notebook-name-template"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:scratch-notebook-name-template</span></tt></a>
|
||||
<dt id="ein:junk-rename">
|
||||
<em class="property">function </em><big>(</big><tt class="descname">ein:junk-rename </tt><em>name</em><big>)</big><a class="headerlink" href="#ein:junk-rename" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Rename the current notebook based on <a class="reference internal" href="#ein:junk-notebook-name-template" title="ein:junk-notebook-name-template"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:junk-notebook-name-template</span></tt></a>
|
||||
and save it immediately.</p>
|
||||
</dd></dl>
|
||||
|
||||
|
@ -846,7 +1038,7 @@ It should be possible to support python-mode.el. Patches are welcome!</p>
|
|||
<dt>
|
||||
<tt class="descname">C-c C-x</tt><tt class="descclassname"> ein:tb-show</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Popup traceback viewer.</p>
|
||||
<dd><dd class="first last"><p>Show full traceback in traceback viewer.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
|
@ -871,6 +1063,19 @@ given, open the last point in the other window.</p>
|
|||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-c C-/</tt><tt class="descclassname"> ein:notebook-scratchsheet-open</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Open “scratch sheet”.
|
||||
Open a new one when prefix argument is given.
|
||||
Scratch sheet is almost identical to worksheet. However, EIN
|
||||
will not save the buffer. Use this buffer like of normal IPython
|
||||
console. Note that you can always copy cells into the normal
|
||||
worksheet to save result.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
<dl class="keybind">
|
||||
<dt>
|
||||
<tt class="descname">C-:</tt><tt class="descclassname"> ein:shared-output-eval-string</tt></dt>
|
||||
|
@ -942,7 +1147,7 @@ Variable <a class="reference internal" href="#ein:connect-run-command" title="ei
|
|||
<dt>
|
||||
<tt class="descname">C-c C-x</tt><tt class="descclassname"> ein:tb-show</tt></dt>
|
||||
</dt>
|
||||
<dd><dd class="first last"><p>Popup traceback viewer.</p>
|
||||
<dd><dd class="first last"><p>Show full traceback in traceback viewer.</p>
|
||||
</dd></dd>
|
||||
</dl>
|
||||
|
||||
|
@ -1141,8 +1346,8 @@ in order to make this code work.</p>
|
|||
<div class="section" id="id11">
|
||||
<h3><a class="toc-backref" href="#id40">Notebook</a><a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h3>
|
||||
<dl class="variable">
|
||||
<dt id="ein:notebook-enable-undo">
|
||||
<em class="property">variable </em><tt class="descname">ein:notebook-enable-undo</tt><a class="headerlink" href="#ein:notebook-enable-undo" title="Permalink to this definition">¶</a></dt>
|
||||
<dt id="ein:worksheet-enable-undo">
|
||||
<em class="property">variable </em><tt class="descname">ein:worksheet-enable-undo</tt><a class="headerlink" href="#ein:worksheet-enable-undo" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Configure undo in notebook buffers.</p>
|
||||
<dl class="docutils">
|
||||
<dt><tt class="xref el el-symbol docutils literal"><span class="pre">no</span></tt> <span class="classifier-delimiter">:</span> <span class="classifier">symbol</span></dt>
|
||||
|
@ -1162,25 +1367,6 @@ or save it once and reopen it if you want to be careful.</dd>
|
|||
this value.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="variable">
|
||||
<dt id="ein:notebook-discard-output-on-save">
|
||||
<em class="property">variable </em><tt class="descname">ein:notebook-discard-output-on-save</tt><a class="headerlink" href="#ein:notebook-discard-output-on-save" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Configure if the output part of the cell should be saved or not.</p>
|
||||
<dl class="docutils">
|
||||
<dt><tt class="xref el el-symbol docutils literal"><span class="pre">no</span></tt> <span class="classifier-delimiter">:</span> <span class="classifier">symbol</span></dt>
|
||||
<dd>Save output. This is the default.</dd>
|
||||
<dt><tt class="xref el el-symbol docutils literal"><span class="pre">yes</span></tt> <span class="classifier-delimiter">:</span> <span class="classifier">symbol</span></dt>
|
||||
<dd>Always discard output.</dd>
|
||||
<dt>a function</dt>
|
||||
<dd>This function takes two arguments, notebook and cell. Return
|
||||
<tt class="xref el el-symbol docutils literal"><span class="pre">t</span></tt> to discard output and return <tt class="xref el el-symbol docutils literal"><span class="pre">nil</span></tt> to save. For example,
|
||||
if you don’t want to save image output but other kind of
|
||||
output, use <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-cell-has-image-output-p</span></tt>.</dd>
|
||||
</dl>
|
||||
<p>Note that using function needs EIN lisp API, which is not determined
|
||||
yet. So be careful when using EIN functions. They may change.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="variable">
|
||||
<dt id="ein:notebook-modes">
|
||||
<em class="property">variable </em><tt class="descname">ein:notebook-modes</tt><a class="headerlink" href="#ein:notebook-modes" title="Permalink to this definition">¶</a></dt>
|
||||
|
@ -1239,11 +1425,11 @@ is on. See also <a class="reference internal" href="#ein:connect-aotoexec-light
|
|||
</dd></dl>
|
||||
|
||||
<dl class="variable">
|
||||
<dt id="ein:scratch-notebook-name-template">
|
||||
<em class="property">variable </em><tt class="descname">ein:scratch-notebook-name-template</tt><a class="headerlink" href="#ein:scratch-notebook-name-template" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Template of scratch notebook name.
|
||||
This value is used from <a class="reference internal" href="#ein:notebooklist-new-scratch-notebook" title="ein:notebooklist-new-scratch-notebook"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebooklist-new-scratch-notebook</span></tt></a>
|
||||
and <a class="reference internal" href="#ein:notebook-rename-to-scratch-command" title="ein:notebook-rename-to-scratch-command"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-rename-to-scratch-command</span></tt></a>. This must be a
|
||||
<dt id="ein:junk-notebook-name-template">
|
||||
<em class="property">variable </em><tt class="descname">ein:junk-notebook-name-template</tt><a class="headerlink" href="#ein:junk-notebook-name-template" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Junk notebook name template.
|
||||
This value is used from <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebooklist-new-scratch-notebook</span></tt>
|
||||
and <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-rename-to-scratch-command</span></tt>. This must be a
|
||||
format string which can be passed to <tt class="xref el el-symbol docutils literal"><span class="pre">format-time-string</span></tt>.</p>
|
||||
</dd></dl>
|
||||
|
||||
|
@ -1262,6 +1448,37 @@ must be <tt class="xref el el-symbol docutils literal"><span class="pre">t</span
|
|||
notebook buffers and connected buffers.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="variable">
|
||||
<dt id="ein:output-type-preference">
|
||||
<em class="property">variable </em><tt class="descname">ein:output-type-preference</tt><a class="headerlink" href="#ein:output-type-preference" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Output types to be used in notebook.
|
||||
First output-type found in this list will be used.
|
||||
This variable can be a list or a function returning a list given
|
||||
DATA plist.
|
||||
See also <tt class="xref el el-symbol docutils literal"><span class="pre">ein:output-type-prefer-pretty-text-over-html</span></tt>.</p>
|
||||
<p><strong>Example</strong>:
|
||||
If you prefer HTML type over text type, you can set it as:</p>
|
||||
<div class="highlight-python"><pre>(setq ein:output-type-preference
|
||||
'(emacs-lisp svg png jpeg html text latex javascript))</pre>
|
||||
</div>
|
||||
<p>Note that <tt class="docutils literal"><span class="pre">html</span></tt> comes before <tt class="docutils literal"><span class="pre">text</span></tt>.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="variable">
|
||||
<dt id="ein:shr-env">
|
||||
<em class="property">variable </em><tt class="descname">ein:shr-env</tt><a class="headerlink" href="#ein:shr-env" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Variables let-bound while calling <tt class="xref el el-symbol docutils literal"><span class="pre">shr-insert-document</span></tt>.</p>
|
||||
<p>To use default shr setting:</p>
|
||||
<div class="highlight-python"><pre>(setq ein:shr-env nil)</pre>
|
||||
</div>
|
||||
<p>Draw boundaries for table (default):</p>
|
||||
<div class="highlight-python"><pre>(setq ein:shr-env
|
||||
'((shr-table-horizontal-line ?-)
|
||||
(shr-table-vertical-line ?|)
|
||||
(shr-table-corner ?+)))</pre>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
</div>
|
||||
<div class="section" id="console">
|
||||
<h3><a class="toc-backref" href="#id41">Console</a><a class="headerlink" href="#console" title="Permalink to this headline">¶</a></h3>
|
||||
|
@ -1617,6 +1834,26 @@ with <tt class="xref el el-symbol docutils literal"><span class="pre">ein:dev-st
|
|||
<div class="section" id="v0-2">
|
||||
<h2><a class="toc-backref" href="#id55">v0.2</a><a class="headerlink" href="#v0-2" title="Permalink to this headline">¶</a></h2>
|
||||
<ul class="simple">
|
||||
<li>Preliminary support for multiple worksheets.</li>
|
||||
<li>Rename notion of “scratch notebook” to “junk notebook”.
|
||||
This is to avoid confusion with newly added “scratch sheet”.
|
||||
Old commands are renamed to <a class="reference internal" href="#ein:junk-new" title="ein:junk-new"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:junk-new</span></tt></a> and
|
||||
<a class="reference internal" href="#ein:junk-rename" title="ein:junk-rename"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:junk-rename</span></tt></a>.</li>
|
||||
<li>Preferred MIME types to be used can be configured using the variable
|
||||
<a class="reference internal" href="#ein:output-type-preference" title="ein:output-type-preference"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:output-type-preference</span></tt></a>.</li>
|
||||
<li>HTML content is rendered SHR (Simple HTML Renderer) by default.
|
||||
Use <a class="reference internal" href="#ein:shr-env" title="ein:shr-env"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:shr-env</span></tt></a> to tweak how HTML rendered.</li>
|
||||
<li><tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-discard-output-on-save</span></tt> is obsolete now.</li>
|
||||
<li>Support execution history. Commands
|
||||
<tt class="xref el el-symbol docutils literal"><span class="pre">ein:worksheet-previous-input-history</span></tt> and
|
||||
<tt class="xref el el-symbol docutils literal"><span class="pre">ein:worksheet-next-input-history</span></tt> can be used
|
||||
to insert previously executed code into the current cell.</li>
|
||||
<li>Add <tt class="xref el el-symbol docutils literal"><span class="pre">ein:pseudo-console-mode</span></tt>.</li>
|
||||
<li>Add “scratch sheet”. This acts almost as same as worksheet, but you
|
||||
don’t need to save it. You can use try any code without saving
|
||||
junks in your notebook. Use the command
|
||||
<tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-scratchsheet-open</span></tt> to open scratch sheet.</li>
|
||||
<li>Menu support in notebook mode and notebook list mode.</li>
|
||||
<li>Auto-connection support.
|
||||
The new function <a class="reference internal" href="#ein:connect-to-default-notebook" title="ein:connect-to-default-notebook"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:connect-to-default-notebook</span></tt></a> can be
|
||||
added to <tt class="xref el el-symbol docutils literal"><span class="pre">python-mode-hook</span></tt> to automatically connect
|
||||
|
@ -1627,7 +1864,6 @@ python-mode buffers to default notebook specified by
|
|||
<li>Change the timing to trigger auto-execution in connected buffer.
|
||||
It was triggered on save before. Now it is on run, eval or reload.
|
||||
See <tt class="xref el el-symbol docutils literal"><span class="pre">ein:connect-toggle-autoexec</span></tt>.</li>
|
||||
<li>[WIP] Worksheet support.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="v0-1-2">
|
||||
|
@ -1657,7 +1893,7 @@ it can connect to the notebook which is not opened yet.</li>
|
|||
<li>Workaround indentation problem when using MuMaMo
|
||||
(<a class="reference external" href="https://github.com/tkf/emacs-ipython-notebook/issues/20">#20</a>).
|
||||
See <a class="reference internal" href="#ein:use-mumamo-indent-line-function-workaround" title="ein:use-mumamo-indent-line-function-workaround"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:use-mumamo-indent-line-function-workaround</span></tt></a>.</li>
|
||||
<li>Add <a class="reference internal" href="#ein:notebook-rename-to-scratch-command" title="ein:notebook-rename-to-scratch-command"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-rename-to-scratch-command</span></tt></a>.</li>
|
||||
<li>Add <tt class="xref el el-symbol docutils literal"><span class="pre">ein:notebook-rename-to-scratch-command</span></tt>.</li>
|
||||
<li>Add <a class="reference internal" href="#ein:pytools-pandas-to-ses" title="ein:pytools-pandas-to-ses"><tt class="xref el el-symbol docutils literal"><span class="pre">ein:pytools-pandas-to-ses</span></tt></a>.</li>
|
||||
<li>Add Imenu support.</li>
|
||||
<li>Better heading cell faces.</li>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue