Commit graph

69 commits

Author SHA1 Message Date
John Miller
39513afd1e Working in 2.x again.
Those if blocks can by pretty iffy. Har. Har . Har. It's late.
2015-05-04 23:36:47 -05:00
John Miller
fe4950cbb7 Correctly start sessions in ipython 3.x
Now start sessions correctly (I think) in IPython 3.x, but somehow this
seems to break IPython 2.x.
2015-05-04 22:59:18 -05:00
John Miller
c488bfb020 Detect ipdb vs pdb, handle debugger output.
Somehow lost ability to handle iopub responses when debugger session is
running.

Also try to set prompt in comint buffer to match debugger being called
(ipdb vs. pdb).
2015-04-10 13:59:36 -05:00
John Miller
1d6c26bbf6 Merge remote-tracking branch 'origin/stdin-channel'
Conflicts:
	lisp/ein-ipdb.el
	lisp/ein-kernel.el
2015-04-09 08:15:23 -05:00
John Miller
bf11f775c2 Getting closer. 2015-04-07 06:51:37 -05:00
John Miller
29e1d7e077 Experiment with comint.
Doing as a first step towards integration with gud...
2015-04-06 13:34:42 -05:00
John Miller
04d36b3fa1 Bump version.
May also have fixed some indentation issues as ein-python was meant for
an old version of python.el.
2015-04-06 12:20:46 -05:00
John Miller
ab8ad81c51 Revert "Separate ipdb buffer, basic command loop."
This reverts commit 33522fcb8d.
2015-04-06 12:14:45 -05:00
John Miller
33522fcb8d Separate ipdb buffer, basic command loop. 2015-04-06 07:23:09 -05:00
John Miller
faaa578807 Basic support for ipdb sessions.
Similar to support in web interface; interaction with debugger is sent
to cell output. We can do better.
2015-03-31 17:26:00 -05:00
John Miller
1c73f2b016 Support stdin input_request for password 2015-03-31 16:55:14 -05:00
John Miller
0328ee70aa Fix silly typo.
It was silly.
2015-03-18 14:09:44 -05:00
John Miller
f41549cd2e Fix `KeyError: 'detail_level' with IPython 3.0
Some more problems with inspect_request messages that I thought I fixed
in earlier commits.

Also some typo fixin' and link correctin'.
2015-03-17 20:41:31 -05:00
John Miller
7b57db59bd Fix execute_reply payload processing in IPython 3.0
The message format for execute_reply payloads has changed. Seems the API
for this is still not finalized, but at least the pager works when I do
things like `object_name?`.
2015-01-14 18:36:59 -06:00
John Miller
b1f4c017e7 Support single websocket with multiple channels
With IPython 3.0 we now support multiplexed communication over a single
websocket. At the moment iopub and shell are supported; stdin doesn't
seem to be working yet (not sure if it needs to be, though).
2015-01-14 17:07:28 -06:00
John Miller
5cdb7ca907 Do connect-request on initial connect
Not sure if we need to do this, or what purpose it might serve, but
seems more appropriate than sending a kernel_info_request when opening
websocket channels.

Also make message handler kernel inactive error messages more
informative.
2014-11-16 11:49:02 -06:00
John Miller
30564f8eda Include session when opening websocket.
Ipython 3.0-dev has been complaining for a while that ein doesn't
specify a session-id when opening a websocket channel to a notebook.
2014-11-16 08:12:04 -06:00
John Miller
228d97f397 Fixing nasty mismatch in saved notebook v4 format
There is a nasty mismatch between internal representation of cell
outputs in ein and for cell outputs in notebook v4.

The current solution is less than elegant, but seems to work. Need more
testing!
2014-11-13 21:36:43 -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
f39c57a633 Directory bugfix. First steps in IPython 3.0 support.
Fixed bug in accessing directories a depths greater than 1 level.

Some initial support for IPython 3.0 and IPEP 27. Can open notebooklists
and notebooks, but having some issues connecting to websocket.
2014-10-17 16:44:04 -05:00
gcr
9c90f25e5a Handle pager opening
Before, this fork has a small regression: Typing 'thing?' into the shell does not open the pager. This small change fixes this small regression.
2014-05-23 15:21:16 -04:00
millejoh
3b0498655c Support kernel reset operations. 2014-05-10 12:59:03 -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
ff622a6468 Fix how ws_url is set
IPython notebook 1.0.dev sends empty ws_url as of this PR
https://github.com/ipython/ipython/pull/3307
2013-06-10 19:56:46 +02:00
Takafumi Arakaki
a5a246c734 Check ein:kernel-live-p in ein:ac-* functions 2013-02-13 21:06:50 +01:00
Takafumi Arakaki
955a82461e Follow change in IPython kernel: payload key
This is the change introduced by ipython/ipython#2872
2013-02-10 05:00:40 +01:00
Takafumi Arakaki
20818f2e77 Do not list duplications when searching history
The key 'unique' is introduced in IPython as of:
https://github.com/ipython/ipython/pull/2792
2013-01-18 14:28:21 +01:00
Takafumi Arakaki
735e14e7b4 Add ein:kernel-kernel-info-request
See: ipython/ipython#2649
2013-01-18 14:03:17 +01:00
Takafumi Arakaki
2f317bf2e4 Remove unsupported :cache argument 2012-12-29 18:55:06 +01:00
Takafumi Arakaki
fdb80c9962 Rewrite callbacks: replace cons with apply-partially 2012-12-29 18:55:06 +01:00
Takafumi Arakaki
992104ebf5 Send proper cookie in ein:kernel-send-cookie 2012-12-17 17:39:46 +01:00
Takafumi Arakaki
ec70eb916f Stop when kernel_id and ws_url are not sent from server
This does not fix anything.  But make error clearer.
see #85
2012-12-04 11:12:16 +01:00
Takafumi Arakaki
2865bc1ff5 Refactor ein:kernel--kernel-started 2012-12-04 11:06:04 +01:00
Takafumi Arakaki
361bee7998 Prevent triggering execution_count.Kernel with nil 2012-10-09 20:26:45 +02:00
Takafumi Arakaki
28ba5e9ad1 Add execution_count.Kernel event 2012-10-09 20:09:23 +02:00
Takafumi Arakaki
610f6c5423 Comment example kernel urls 2012-09-30 17:22:37 +02:00
Takafumi Arakaki
18dec8a1cb Cleanup FIXMEs 2012-09-11 01:47:50 +02:00
Takafumi Arakaki
d10565b052 Change default n value in ein:kernel-history-request 2012-09-08 00:04:08 +02:00
Takafumi Arakaki
851c6c96d2 Add ein:kernel-history-search-synchronously 2012-09-05 22:47:11 +02:00
Takafumi Arakaki
6f1a11be30 Add autoload cookies 2012-09-01 20:51:55 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
7dff9d7f6a Add FIXMEs on ein:$kernel 2012-08-28 15:06:28 +02:00
Takafumi Arakaki
4a1b812e21 Define "public" method ein:kernel-url-or-port 2012-08-28 14:55:22 +02:00
Takafumi Arakaki
8ce439b927 Add ein:kernel-history-request 2012-08-28 12:18:12 +02:00
Takafumi Arakaki
22a316d48f Remove ein:*-sync-directory
As kernelinfo does the job, these functions are not needed.
2012-08-26 23:10:20 +02:00
Takafumi Arakaki
f83623ace6 Move kernelinfo into a separate module 2012-08-26 15:14:59 +02:00
Takafumi Arakaki
71472ddaac More docstring on ein:kernelinfo-update-* 2012-08-21 09:59:35 +02:00
Takafumi Arakaki
6f7bc7b7ca Fix notebook buffer directory sync with kernel 2012-08-21 09:59:08 +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
e426340cd3 Fix: ein:tb-show did not work in shared-output buffer
It did not work because ein:get-notebook does not work.  Notebook
is not well defined in shared-output buffer since it knows only
about kernel (through cell).  This reflect the design that kernel
and notebook is well decoupled.
2012-08-15 20:54:22 +02:00