Commit graph

2021 commits

Author SHA1 Message Date
millejoh
da56452155 More bugfixes for markdown cells that don't secretly yearn for heading-ness. 2015-02-15 09:57:25 -06:00
millejoh
9bfbf5544c Fix bug in heading detection code. 2015-02-15 09:31:23 -06:00
millejoh
d52cc9a662 Restore heading level cells to nbformat4 notebooks. 2015-02-15 09:27:18 -06:00
millejoh
e3623a373e Handle nbformat4 notebookes with markdown cells that secretly desire to be heading cells. 2015-02-15 09:23:33 -06:00
John Miller
f8a82b8e24 Correctly determine path for 2.x notebooks
Found another corner cases for IPython 2.x.
2015-02-12 12:10:56 -06: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
098dddd3e9 Regain IPython 2.x compatibility I
Notebooks now save in IPython 2.x and 3.x.
2015-02-12 08:45:29 -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
66db53333b Generic query contents for IPython 2.x and beyond
Renamed `ein:content-list-contents` to reflect it's more generic
function.

Added support fro content querying of IPython 2.x notebook servers.
2015-02-09 13:27:20 -06:00
John Miller
40646b75ae Merge remote-tracking branch 'origin/fix-travis' into deferred-dev 2015-02-09 06:50:06 -06:00
John Miller
4eae3ce446 Clean up warnings in func-test.el 2015-02-03 19:12:25 -06:00
millejoh
2948e2cfae Merge branch 'fix-travis' of https://github.com/millejoh/emacs-ipython-notebook into fix-travis 2015-02-03 17:45:19 -06:00
millejoh
84f478aed6 Improving ipython 3 support in testein.py. Lots of fixes for notebook tests to
properly test nbformat 3 notebooks.
2015-02-02 13:20:24 -06:00
John Miller
91b4ff2ac1 Clean up test cases
Keep it simple and figure out what isn't working.
2015-02-01 21:38:46 -06:00
John Miller
0796ed2dce Fix typos
Never can remember the names of the keywords for request.
2015-01-31 10:32:52 -06:00
John Miller
c30bad19a5 Content renaming
Call ein:content-rename to rename a content object in ein and at the
Jupyter server.
2015-01-31 10:31:20 -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
John Miller
cad579ed28 Documentation updates.
Typos and grammar fixes.
2015-01-30 07:50:43 -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
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
e5728799ef Merge remote-tracking branch 'origin/nbformat4' 2015-01-13 06:48:28 -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
9637ea7317 Fix null metadata
ein was incorrectly writing empty metadata as a Null object, which was
causing errors in ipython.

Added a helper function to write json encoding of a notebook to a
temporary buffer to help debug code for encoding nbformat4 json from
cell data.
2015-01-09 10:00:22 -06:00
millejoh
d5b41c8f5d For testing reading and writing nbformats v3 (for IPython 2.x) and
v4 (for IPython-dev/3.0), many example notebooks.
2015-01-07 20:50:49 -06:00
John Miller
7e61189684 Merge branch 'master' of https://github.com/millejoh/emacs-ipython-notebook 2015-01-06 06:37:03 -06:00
millejoh
3c3033ed9a Merge branch 'master' of https://github.com/millejoh/emacs-ipython-notebook 2014-12-26 13:48:32 -06:00
millejoh
8510111b5d Remove auto-complete as required dependency.
As the documentation says, auto-complete is optional.
2014-12-26 13:46:31 -06:00
John Miller
70c0aef704 Updating documentation of requirements. 2014-12-21 11:25:24 -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
fac3637034 Updating package commentary, grammar.
So the MELPA package info is a bit more, well, informative.
2014-12-17 08:19:51 -06:00
John Miller
cbf4938d76 Make ein:query-ipython-version less whiny.
Calling ein:query-ipython-version with IPython 2.x running will result
in a request error since the api REST url is not implemented. Getting a
404 response is inevitable unless the IPython devs backport the api URL,
but I can make ein complain less when this happens.
2014-12-16 14:26:51 -06:00
John Miller
88ef3c3e1b Documents - grammar and refs update
Correcting grammar in documents, updating software version and
references.
2014-12-16 07:21:32 -06:00
John Miller
6dfb4a2b43 Updating documentation, remove ein-loaddefs
Updating documentation to list current requirements for ein. (require
'ein-loaddefs) is redundant when loading from MELPA.

For manual installation users can uncomment this line.
2014-12-14 15:20:05 -06:00
John Miller
7f92352856 Revert "ein2 branding, update requirements"
This reverts commit c54b23de35.
2014-12-09 10:43:04 -06:00
John Miller
d8e5a3e1bc Revert "Renaming to ein2"
This reverts commit 029f72d46d.
2014-12-09 10:42:39 -06:00
John Miller
b024963a36 Revert "Missed a reference to ein2"
This reverts commit ddd00d122f.
2014-12-09 10:42:06 -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
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
57a89bb112 Fixing test cases for ipython 2.x
Incorporating changes to REST api and nbformat that came with ipython
2.0.
2014-12-04 10:14:10 -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
vagrant
a1afb096c7 Testing cleanup to run on vagrant. 2014-12-02 22:16:55 +00:00
John Miller
40e0186b22 Clean up test cases
Keep it simple and figure out what isn't working.
2014-12-02 06:29:35 -06:00