Commit graph

829 commits

Author SHA1 Message Date
John Miller
ddd00d122f Missed a reference to ein2
Fixed debug-ein.el to require ein2 instead of ein.
2014-12-06 17:12:09 -06:00
John Miller
029f72d46d Renaming to ein2
Renaming to ein2 in preparation for submitting to melpa. Note this
changes how you load ein! Call (require 'ein2) now instead of (require
'ein).

Note also that you can't load both ein and ein2 at the same time, so you
should delete ein from your packages before trying ein2.
2014-12-06 13:22:13 -06:00
John Miller
c54b23de35 ein2 branding, update requirements
Touch up package definition, added Tornado requirement to README.
2014-12-05 07:04:34 -06:00
John Miller
fe7dc935c5 Fixing notebooklist-new-notebook
IPython 2.x+ has a JSON response when creating a new notebook. We detect
this and correctly parse the info so we can open a buffer with the newly
created notebook.

Also more updating of test code.
2014-12-04 13:52:36 -06:00
John Miller
5b84bf8874 Fix extraneous notebok-path argument
Had two arguments for notebook-path in various function signatures.
2014-12-04 12:01:33 -06:00
John Miller
8aece1758b Fixing ein:connect-to-notebook
ein:connect-to-notebook seems to work now...
2014-12-03 19:44:02 -06:00
John Miller
b83621299e Fixing :prompt_number property on saving.
More conditional code for saving notebooks in nbformat v4.0.
`prompt_number` is no longer a valid property so it has to be corrected
to be `execution_count` instead.
2014-11-20 12:36:24 -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
f3ce2fc66b Missed condition to save display_data
Some additional conditional code to save images embedded in notebooks
using nbformat v4.
2014-11-14 14:49:37 -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
7c7d532609 Reading and saving images in v4 notebooks.
Rock on.
2014-11-12 18:11:08 -06:00
John Miller
1f3a7efd77 Fixing some silliness with new Contents service
The IPython Contents Service (IPEP 27) has decided they want to do
path's differently, and now ein supports that different way of thinking.
2014-11-12 06:38:02 -06:00
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
c963d236c7 Documentation update and travis cleanup
Progressing back towards having automated testing via travis. Updated
contact info for ein:dev-bug-report-template and updated requirements in
README.rst.
2014-11-03 16:34:14 -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
John Miller
9a5cc12975 Renaming Notebooks
Renaming notebooks is functional, apparently, but code needs more
testing. I am concerned that the PATCH request is not generating a 200
response code as it should be (and does when I test under Python).

Also some preliminary code to provide breadcrumbs in notebooklist
buffer.
2014-09-28 13:52:30 -05:00
John Miller
7185d18e8c Creating and deleting notebooks
Creating and deleting notebooks from the notebooklist buffer is now
funcitonal and supports subdirectories per IPEP 16.
2014-09-19 09:17:12 -05:00
John Miller
b9e145c4db Cleaning up status messages
Corrected error in response code checking when saving a network (IPython
server now returns 200 instead of 204).

Cleaned up error that was being raised from EIN's notification system.
Seems like there is some logic for popping to a buffer once a
notification event first, but to what buffer is unclear so for know I
have disabled that functionality.
2014-09-12 12:37:24 -05:00
John Miller
66a035cfe5 Bug in saving notebooks
Fixed a bug in saving notebooks in a subdirectory - EIN thought the save
was failing and incorrectly creating a new workbook at the top of the
directory hierarchy.
2014-09-12 09:20:55 -05:00
John Miller
1956876200 Support Directories
Increased support for IPEP 16: Notebook multi-directory dashboard and
URL mapping. The ein:notebooklist buffer will show subdirectories, which
can be opened by user. Does not support going back up in the hierarchy,
however.

Not fully tested, so use with caution!
2014-09-11 20:04:00 -05:00
John Miller
1178703886 Merge pull request #2 from gcr/patch-2
Encode URL before opening it
2014-05-26 12:13:20 -05:00
gcr
1914e68b89 Encode URL before opening it
This fixes the bug where EIN cannot open notebooks with spaces in them.

I'm not sure if this is correct!
2014-05-23 15:24:48 -04: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
millejoh
c8c36192c3 Update arguments to avoid loading an init file (makes it easier for me
to test using a 'vanilla' emacs environment).
2014-05-10 12:57:48 -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
d62dc59869 Require 'cc-mode in ein-utils.el
It looks like in new Emacs version (> 24.3?), c-mode-syntax-table is not
available by default.
2014-03-17 19:14:02 +01:00
Takafumi Arakaki
a1ddf7a7a9 Rename: ein-cached -> ein-async 2013-07-10 21:14:58 +02:00
Takafumi Arakaki
5845dc6e35 Remove unused code from ein-ac.el 2013-07-10 21:14:58 +02:00
Takafumi Arakaki
372c7f619c Disable caching complete candidates
ein:ac-clear-cache takes too much time by the result of profiler.el.
Also, as ac-source-ein-cached sends request in background [1], there is
no need for caching anymore.

[1] 865a96f3d2
2013-07-10 21:14:58 +02:00
Takafumi Arakaki
7901e90db7 Default ein:query-timeout is nil if curl is used
this is to address #114
2013-06-11 16:51:06 +02: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
b12b91da7a Add ein:slice-image
This is a workaround for issue #94.
2013-06-05 01:43:49 +02:00
Takafumi Arakaki
819e3e3df3 Fix: unintended text was inserted by dot-complete 2013-06-05 01:38:56 +02:00
Takafumi Arakaki
203ff99987 Register ein:worksheet-execute-all-cell to menu
Add it to document also.

fixes #63
2013-04-12 18:24:38 +02:00
Takafumi Arakaki
76591e007b Use region as default code for ein:shared-output-eval-string 2013-03-10 08:11:30 +01:00
Takafumi Arakaki
9a637921f1 Improve ein:shared-output-eval-string 2013-03-08 14:10:37 +01:00
Takafumi Arakaki
7f17f3bc43 Improve bug report template
to avoid trouble like #104.
2013-02-23 16:35:08 +01:00
Takafumi Arakaki
e5b53e5043 Do not try dot-complete when in string literal etc. 2013-02-13 21:46:24 +01:00
Takafumi Arakaki
fe682db22d Fix compile warnings in ein-ac.el and ein-jedi.el 2013-02-13 21:32:36 +01:00
Takafumi Arakaki
5b18c666e3 Make ein:jedi-complete work when kernel is dead
Previously deferred:callback-post was not called for the
deferred object from ein:jedi--completer-complete when the
kernel is dead.  It is called with an empty result now.
2013-02-13 21:20:56 +01: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
d0e96d0be6 Bump to 0.2.1alpha2 2013-02-10 04:12:50 +01:00
Takafumi Arakaki
17b657cf8f Show recent history first in helm/anything UI 2013-01-21 22:06:58 +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