Commit graph

48 commits

Author SHA1 Message Date
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
Takafumi Arakaki
ae4ed72938 ein:notebooklist-new-notebook works w/o notebook list
Previously, ein:notebooklist-new-notebook needs opened notebook
list buffer to work.  This constraint is removed since the notebook
buffer is used just to retrieve url-or-port variable.

fixes #33
2012-07-25 20:48:27 +02:00
Takafumi Arakaki
c1de159060 Retain original point after updating notebook list
fixes #22
2012-07-15 22:27:49 +02:00
Takafumi Arakaki
d9c96d86f3 Update docstrings 2012-07-14 16:46:17 +02:00
Takafumi Arakaki
22fc876723 Add ein:scratch-notebook-name 2012-07-14 16:30:56 +02:00
Takafumi Arakaki
51b623e4e2 Move ein:scratch-notebook-name-template to ein-utils.el 2012-07-14 16:23:25 +02:00
Takafumi Arakaki
5c5ba3810b Support callback in ein:notebooklist-open-notebook-by-name 2012-07-12 02:56:23 +02:00
Takafumi Arakaki
857660c0a3 Fix ein:connect-to-notebook: no popup 2012-07-12 02:44:34 +02:00
Takafumi Arakaki
96cb9076f3 Connect to not-yet-opened notebook
fixes #16

Note that this change introduces another problem:
ein:connect-to-notebook popups notebook buffer (opens notebook buffer
and change focus to it).  Fixing this requires change in
ein:notebook-open.
2012-07-12 02:04:50 +02:00
Takafumi Arakaki
0d665ca8b5 Refactoring: add ein:notebooklist-list-notebooks 2012-07-12 01:09:58 +02:00
Takafumi Arakaki
803bdea285 Add a FIXME comment in ein:notebooklist-open-notebook-by-name 2012-07-05 00:22:16 +02:00
Takafumi Arakaki
ed7f4d997c Add ein:notebooklist-first-open-hook 2012-07-05 00:13:12 +02:00
Takafumi Arakaki
d1031fd61e mv *ein*.el ein.py lisp/
fixes #6
2012-07-02 16:47:20 +02:00
Renamed from ein-notebooklist.el (Browse further)