Commit graph

62 commits

Author SHA1 Message Date
John Miller
c1ba0efc11 Notebooklist auto-reload hack
Auto-reload notebooklist after opening a notebook or stopping a kernel.
Feels hacky using run-at-time, especially with a constant time (3
seconds).
2015-01-13 06:40:15 -06:00
John Miller
26f1696c6b Revert "Autoupdate notebooklist buffer on open or stop"
This reverts commit 90c26ad16d.
2015-01-09 10:27:45 -06:00
John Miller
90c26ad16d Autoupdate notebooklist buffer on open or stop
Call `(ein:notebooklist-reload)` to automatically refresh the
notebooklist buffer when a notebook is opened or stopped so those
helpful [Stop] widgets appear and disappear as needed.
2015-01-09 10:22:35 -06:00
John Miller
547f50fd52 Stop/kill notebooks from the notebooklist
The notebooklist buffer will give option of "stopping" running kernels,
similar to feature in the browser UI. In EIN stopping a kernel also
means kill the buffer the kernel is connected to.
2014-12-19 16:24:59 -06:00
John Miller
962ebb1281 Improving breadcrumbs on notebooklist-open
The notebooklist buffer now has a funcitonal breadcrumb list at the top
of the page.
2014-12-09 10:41:53 -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
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
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
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
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
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
271e04055c Fix and simplify ein:notebooklist-new-notebook-error
* The url.el bug 12374 is fixed and request.el provides
  monkey patch.   There is no need for the workaround now.
* request-response-redirects does not exist anymore.
2013-01-10 22:10:03 +01:00
Takafumi Arakaki
de5853a15e Workaround in ein:notebooklist-login--error 2013-01-10 21:59:42 +01:00
Takafumi Arakaki
7b80104ea6 Cosmetic fix on ein:notebooklist-login--error 2013-01-09 05:51:25 +01:00
Takafumi Arakaki
0a191c7686 Fix ein:notebooklist-delete-notebook 2012-12-29 18:55:06 +01:00
Takafumi Arakaki
191a8f0022 Cosmetic changes
The changes I deferred in the previous commits to make the
diff small.
2012-12-29 18:55:06 +01:00
Takafumi Arakaki
5b5aa30752 Use keyword arguments of CB supported by request.el 2012-12-29 18:55:06 +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
401ce29036 Hexify password 2012-12-17 23:15:21 +01:00
Takafumi Arakaki
1f29b6d91e Workaround url.el bug for proper message after login 2012-12-17 19:26:13 +01:00
Takafumi Arakaki
af43af7146 Use read-passwd instead of read-string 2012-12-17 17:55:30 +01:00
Takafumi Arakaki
aafe7a8f18 Add ein:notebooklist-login command 2012-12-17 17:39:46 +01:00
Takafumi Arakaki
d5b741a292 Move ein:html-get-data-in-body-tag to ein-utils.el 2012-10-09 15:27:36 +02:00
Takafumi Arakaki
05f54d62f7 Tweak message in ein:notebooklist-new-notebook-error 2012-09-07 00:15:53 +02:00
Takafumi Arakaki
90f36785d7 Remove unneeded format in ein:notebooklist-new-notebook-error 2012-09-07 00:06:23 +02:00
Takafumi Arakaki
6b95f51d15 More message in ein:notebooklist-new-notebook-error 2012-09-07 00:05:27 +02:00
Takafumi Arakaki
106576409a Use ein:log instead of message in ein-notebooklist.el
%s/(message /(ein:log 'info /g
2012-09-07 00:04:21 +02:00
Takafumi Arakaki
32f93d2b9f Reduce code for messaging for notebook-open 2012-09-07 00:01:27 +02:00
Takafumi Arakaki
5f4ddd3947 Workaround the url-retrieve bug for notebook creation
As of https://github.com/ipython/ipython/pull/2218, IPython server
redirects when creating a new notebook.  However, redirection on
local server does not work in url-retrieve.  See:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12374

This bug in url-retrieve is handled in the newly introduced error
callback.
2012-09-06 23:46:29 +02:00
Takafumi Arakaki
75a51b2c70 Fix ein:notebooklist-open-notebook-by-file-name
The NOERROR argument was not used.
2012-09-05 20:33:21 +02:00
Takafumi Arakaki
4884bdbadc Refactor ein:notebooklist-find-file-callback 2012-09-05 18:03:53 +02:00
Takafumi Arakaki
b7d9c9aabd Add ein:notebooklist-find-file-callback 2012-09-05 17:52:46 +02:00
Takafumi Arakaki
4dfdf31f71 Add ein:notebooklist-open-notebook-by-file-name 2012-09-05 17:35:08 +02:00
Takafumi Arakaki
5673bc751c Improve ein:notebooklist-new-notebook-with-name 2012-09-05 14:51:35 +02:00
Takafumi Arakaki
6f1a11be30 Add autoload cookies 2012-09-01 20:51:55 +02:00
Takafumi Arakaki
ed813c2b8e Add notebook list menu 2012-09-01 19:18:12 +02:00
Takafumi Arakaki
fe1d76278c Move scratch notebook functions to ein-junk.el 2012-09-01 18:29:09 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
21009827e2 Add ein:notebooklist-load 2012-08-26 22:15:44 +02:00
Takafumi Arakaki
2e8357afbf Fix ein:notebooklist-open-notebook-global
Check url-or-port when fetching notebook-id
2012-08-22 15:44:53 +02:00
Takafumi Arakaki
26a6dfe6ff Fix: ein:notebook is referenced 2012-08-19 04:34:47 +02:00
Takafumi Arakaki
079701cfb2 Rename: ein:notebooklist -> ein:%notebooklist%
%s/\_<ein:notebooklist\_>/ein:%notebooklist%/g

Define obsolete alias, as user might use this variable.
2012-08-18 22:59:14 +02:00
Takafumi Arakaki
73cadcaaa4 Use generic getters in ein-pytools.el 2012-08-14 21:05:05 +02:00
Takafumi Arakaki
f510e8d50f Implement "generic getter" mechanism
See the docstring of ein:generic-getter
2012-08-14 21:05:03 +02:00