Commit graph

90 commits

Author SHA1 Message Date
John Miller
71d8994ebb Undoing earlier bone-headedness
Finally getting Sam's PR right (sorry about that, Sam). Getting the
mocker subtree into the right place because apparently I cannot type.
2016-09-23 10:37:48 -05:00
John Miller
706ff2184a Merge branch 'pr/117' 2016-09-19 10:46:43 -05:00
John Miller
ed70a26700 Set local keymap for ein's derived modes. 2016-09-19 09:02:35 -05:00
John Miller
ef949a189d Revert "derived modes inherit from special-mode or view-mode as appropriate"
This reverts commit 99de3360c3.
2016-09-15 14:14:42 -05:00
Sam Steingold
99de3360c3 derived modes inherit from special-mode or view-mode as appropriate
this means that the derived modes get all the standard keybinding in the standard way.
2016-09-13 09:32:31 -04:00
John Miller
40b34cd8b5 Close opened buffer from notebooklist buffer.
Do a better job with lexical-let's, add close command to opened notebook
list.
2016-09-04 17:58:55 -05:00
John Miller
afc6ca6102 More informative notebooklist buffer
It may be info overload, but notebooklist buffers will now list all
opened notebooks.
2016-08-31 10:04:06 -05:00
Guillaume Anciaux
62c0c21d28
cleaning some debug messages 2016-07-19 10:46:50 +02:00
Guillaume Anciaux
1c549e72d7
addîng the slide info in prompt and allow switch slide type with C-c C-d 2016-07-19 10:37:00 +02:00
John Miller
8aaae29a23 Fix what introducing kernelspecs broke.
Embarassing, really. Missing parameters and some poorly placed branching
logic conspired to bring down ein on IPython 2.x. Should be better now.
2016-04-15 16:08:53 -05:00
John Miller
bd9668702a Fix for issue #92
Use lexical-let vs let in `ein:notebooklist-render.`
2016-03-23 12:31:47 -05:00
John Miller
7e4df981c8 Fix for issue #91
Corrected `ein:junk-new` to include kernelspec selection.
2016-03-22 07:47:11 -05:00
John Miller
c5cf44a795 Fix saving new notebooks, whitespace updates.
Newly created notebooks no longer error on saving - bug in how
kernelspec metadata was being filled in.

Also a number of miscellaneous fixes to indentation that have
inexplicably appeared in the code.

Some small fixes for typos and catching up on version info.
2016-03-01 16:02:00 -06:00
John Miller
24afb15985 Bump to v0.8.0 2016-02-02 12:12:46 -06:00
John Miller
5dec56eec2 Respect kernelspec info in notebook metadata.
This should allow us to reload notebooks using the same
kernel they were running when saved.
2016-01-13 18:07:15 -06:00
John Miller
90920e28c6 Create notebooks with user-specified kernels.
This works with the New Notebook widget in the notebooklist,
need to check if the menu commands also work.
2016-01-13 08:30:15 -06:00
John Miller
a89aa6aebd Including kernelspecs into the notebooklist view.
EIN now shows kernels available for the Jupyter server being view in the
notebooklist buffer. We don't do much with the info, yet, though.
2016-01-13 07:52:02 -06:00
John Miller
25d1437de6 Ask for kernel when creating named notebook.
We don't do anything with the info, yet, but it is a good
test for our code for getting available kernels from the Jupyter
server.
2016-01-11 20:21:19 -07:00
John Miller
b8aa391b31 Fix ein:make-content-hierarchy.
In the end so ein:notebooklist-open-notebook-global can work.
2015-12-04 14:15:41 -06:00
John Miller
3aa290ed91 Fix breadcrumbs in notebook list.
Seems like a regression, but I'm not 100% sure on that.

Update metadata name (add ein qualifier) per Jupyter documentation
guidance.
2015-09-14 13:16:49 -05:00
John Miller
0bbe7ad204 Be more friendly in ein:notebooklist-open
Accept URL's even if protocol not specified. If no protocol is specified
then assume http.
2015-07-08 16:17:54 -05:00
John Miller
0cf283a43b Use session query to show running kernels.
Stopping a kernel now doesn't automatically close a buffer, nor does
closing a buffer automatically stop a running kernel. This is
functionality more in line of what EIN supported for IPython 0.x and
1.x.
2015-05-28 11:56:40 -05:00
John Miller
2eeae04a03 Fix issue #35
Get ein:junk-new working again under IPython 2.x.

Some non-related work on fixing `ein:pytools-export-buffer`. Not quite
there yet, but I have an idea of what is going on.
2015-03-25 09:52:16 -05:00
John Miller
bc3e2ffdc6 Cleaning up calls to ein:notebooklist-open
Syncronizing API update for opening notebooks across various calls in
ein-notebooklist.
2015-02-12 09:20:34 -06:00
John Miller
8836cf6152 Bug in notebooklist-render
Now correctly detects when a notebook is open and kernel running.
2015-02-10 14:56:41 -06:00
John Miller
f71676ac88 Refactoring notebook management
Work in progress.

Lots and lots of changes trying to clean up code so there are not so
many checks of IPython version. Also a significant amount of refactoring
all notebook server requests code to ein-contents-api.

Also moving away from notebook-id concept; instead use notebook path to
uniquely identify notebooks/content.

Made `ein:query-ipython-version` more efficient by caching results.
2015-02-10 14:53:08 -06:00
John Miller
55be1cbf26 Refactoring support for contents API
Start of a refactor of code for accessing Jupyter's new contents API.
First up an implementation of list contents.

New function for flattening lists borrowed from cl-alexandria (how did
we survive withoutthis in the before times?)

Updating author list here and there.
2015-01-31 10:13:49 -06:00
millejoh
c0a3a7d1e0 Be more specific when creating a new notebook.
When creating a new notebook pass some additional json so IPython
knows we want to create a notebook, and not a file or directory (this
was causing problems with IPython-dev).
2015-01-16 22:01:54 -06:00
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