Commit graph

152 commits

Author SHA1 Message Date
John Miller
9182acc258 NBFormat v4 Tweaks, fixing rename-notebook
Renaming notebooks should work a bit better now, tweaked code for saving
nbformat v4 to correctly include execution_count parameter even if cell
has not been executed.

Cleaned up some silliness in ein:query-singleton-ajax.
2014-11-11 11:33:14 -06:00
John Miller
5112873f7c Bug in saved v4 notebook format
Wasn't generating correct format for output elements in code_cells.
2014-11-10 09:36:44 -06:00
John Miller
849adda708 Support for nbformat v4
BEWARE! This is a large commit and the code here is still mostly
untested. Back up your notebooks before giving this changeset a try with
the current IPython-dev version.

Given that, ein is now able to open and save basic notebooks saved in
nbformat 4. Still haven't tested more complex notebooks with embedded
images.
2014-11-07 19:28:09 -06:00
John Miller
59072658aa IPython 3.0 Support
Maybe, just maybe ein now works under both IPython 2.x and IPython 3.0
(or what is the development version as of this commit). And by works I
mean open, closing, saving notebooks and communicating with the IPython
kernel. It is good.

Also fixed a bug in kernelinfo - os.uname is not implemented in Windows
(or mac, probably), but I think socket.gethostname() is available on all
three platforms.
2014-10-22 21:35:20 -05:00
John Miller
20a725012b Preliminary support for IPython 2.0
Basic, mostly untested support for the brave new world of IPython 2.0.
2.0 now supports the concepts of 'paths', letting notebooks be stored in
a directory hierarchy. This has resulted in a change in the web API -
most URL's are now prefixed with 'api/'.

EIN does not (yet) support hierarchical notebooks, but at least it now
plays better with the new URL scheme for iPython 2.0.

Oh, there also seems to have been a change in the format of the ipython
notebook. This has been fixed too, but is probably bakcwards
incompatible.
2014-04-14 12:48:55 -05:00
Takafumi Arakaki
b12b91da7a Add ein:slice-image
This is a workaround for issue #94.
2013-06-05 01:43:49 +02:00
Takafumi Arakaki
866002d680 Expand cell when kernel send some output
fixes #88
2012-12-06 21:56:02 +01:00
Takafumi Arakaki
0a6b1e3372 Add ein:cell-collapse/expand 2012-12-06 21:54:32 +01:00
Takafumi Arakaki
d04665ced7 Don't invalidate in ein:cell-set-collapsed unless needed 2012-12-06 21:54:18 +01:00
Takafumi Arakaki
8297363d2b Add PROP option to ein:cell-goto 2012-10-05 12:12:06 +02:00
Takafumi Arakaki
6403a83c74 Add new ein:cell-language method 2012-09-04 01:58:27 +02:00
Takafumi Arakaki
45c129b4f9 Use ASCII table for pandas output 2012-08-31 00:30:31 +02:00
Takafumi Arakaki
db104fc836 Make preferred output type configurable 2012-08-31 00:10:14 +02:00
Takafumi Arakaki
50da228b92 Render HTML using shr 2012-08-30 22:51:14 +02:00
Takafumi Arakaki
42b6363ca5 Support deactivated cell in ein:cell-get-text
This is needed for ein:cell-to-json to work with deactivated cell.
2012-08-29 21:03:14 +02:00
Takafumi Arakaki
1f7e6ec857 s/\(maybe_reset_undo\).Notebook/\1.Worksheet/g 2012-08-28 16:42:07 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
d461afeccb set_dirty.Notebook -> set_dirty.Worksheet 2012-08-27 23:21:47 +02:00
Takafumi Arakaki
b4cc0dae43 Remove invalid FIXME from ein:cell-append-text
HTML special escaping is needed for the browser client, but not for
EIN.
2012-08-26 13:20:51 +02:00
Takafumi Arakaki
fbfc9b6eda Raise error in ein:cell-class-from-type when type not found 2012-08-24 23:45:01 +02:00
Takafumi Arakaki
7192deb514 Fix maybe_reset_undo.Notebook event 2012-08-20 03:03:29 +02:00
Takafumi Arakaki
07dc0b3360 Move event set_next_input.Notebook to Worksheet 2012-08-20 03:03:29 +02:00
Takafumi Arakaki
f32a169920 Move tooltip and help command to pytools
ein-notebook.el and ein-connect.el can share same command thanks to
the generic getter function.
2012-08-19 21:48:28 +02:00
Takafumi Arakaki
b74f7acbcd Rename: ein:cell... -> ein:%cell-append-stream-last-cell%
%s/\_<ein:\(cell-append-stream-last-cell\)\_>/ein:%\1%/g
2012-08-18 23:00:05 +02:00
Takafumi Arakaki
d7e05fba63 Improve the previous fix on ein:tb-show
Traceback shown in shared-output buffer by
ein:notebook-show-in-shared-output did not have kernel info and
thus failed when ein:tb-show was called.
2012-08-15 21:05:48 +02:00
Takafumi Arakaki
2faeb54475 Add ein:get-traceback-data generic getter 2012-08-14 21:05:12 +02:00
Takafumi Arakaki
a7ed0ca447 Remove ein:cell-max-num-outputs from document
And disable it (set to nil).

Limiting number of output does not work well, when a lot of inputs
comes with carriage returns.  Probably it is better to limit by
number of lines (plus maybe number of images).
2012-08-11 00:48:56 +02:00
Takafumi Arakaki
12fae49898 Fix arguments of other callbacks
Any callbacks called from ein:kernel--handle-shell-reply are passed
metadata.  Therefore, complete/tooltip callbacks must be changed.
2012-08-08 23:27:07 +02:00
Takafumi Arakaki
c798f7d143 Adapt to new kernel-execute API
This is required to avoid wrong-number-of-arguments error,
unlike javascript.
2012-08-08 21:30:14 +02:00
Takafumi Arakaki
0995fe51e8 Document autoexec more 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
a65822a982 Add ein:notebook-turn-on-autoexec command 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
04a121ad72 Add ein:notebook-execute-autoexec-cells 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
1451d7ff6b Add autoexec slot and functions to toggle 2012-07-29 17:11:57 +02:00
Takafumi Arakaki
a512a33a35 Correct max-num-outputs 2012-07-28 02:02:49 +02:00
Takafumi Arakaki
d65394ff75 Fix how ein:cell-max-num-outputs is treated
Previous version added newline after "." every time when the new
output is sent from the server.
2012-07-28 01:52:31 +02:00
Takafumi Arakaki
1a6f4cfa58 Inherit ein:pos-tip-face from popup-tip-face 2012-07-25 22:16:37 +02:00
Takafumi Arakaki
0205188933 Make ein:cell-input-pos-min/max more robust
EWOC node for input area may not be set when these function is called.
However, error should not be raised even so.
2012-07-22 16:57:41 +02:00
Takafumi Arakaki
3d61551215 Remove unused variable from ein:cell-input-pos-min 2012-07-22 16:50:45 +02:00
Takafumi Arakaki
3934f8471a Add optional RELPOS argument to ein:cell-goto 2012-07-21 14:32:11 +02:00
Takafumi Arakaki
34a10d38b5 Add ein:cell-relative-point function 2012-07-21 14:31:42 +02:00
Takafumi Arakaki
0e385ceb69 Fix: copying heading cell discarded level info 2012-07-21 14:28:14 +02:00
Takafumi Arakaki
9bd3b249ff Use overlay to specify ein:cell-heading-N faces
As there is some problem with text property based face and MuMaMo,
using text property for heading is not good idea.  Turing on/off
heading face changes height and moves the following contents in the
notebook.  This is not allowable.

Furthermore, previous approach does not work when there is no text
in the input area or when inserting in front of the current heading.
2012-07-20 20:51:37 +02:00
Takafumi Arakaki
a18c3a8035 Add heading faces 2012-07-20 20:38:04 +02:00
Takafumi Arakaki
dd53358ff8 Fix ein:notebook-change-cell-type
The prompt became "hheading:" because the string "heading" was in the
:level slot.
2012-07-20 17:09:43 +02:00
Takafumi Arakaki
460ae08575 Fix ein:cell-max-num-outputs docstring 2012-07-17 19:13:32 +02:00
Takafumi Arakaki
1d6aa0765a Add ein:cell-max-num-outputs config variable 2012-07-17 19:01:22 +02:00
Takafumi Arakaki
d0874be99b Add a command to show a cell in shared-output buffer 2012-07-17 18:29:00 +02:00
Takafumi Arakaki
63958f3cfa Change mime type preference: text over latex
LaTeX is not for human!
2012-07-14 15:19:26 +02:00
Takafumi Arakaki
27ca1a6c5a Fix the problem with unclosed ANSI escape code 2012-07-10 07:51:41 +02:00
Takafumi Arakaki
6f3fb3b576 Handle carriage return using comint
fixes #13
2012-07-10 02:47:47 +02:00