Commit graph

1890 commits

Author SHA1 Message Date
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
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
218ee3dbb2 More README updates.
Some more updates to README.
2014-11-03 16:36:52 -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
John Miller
cb9be0ebec Merge pull request #1 from gcr/patch-1
Handle pager opening
2014-05-26 12:13:08 -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
30f102c12a Merge branch 'auto-complete-performance' 2013-07-11 10:04:14 +02:00
Takafumi Arakaki
bc32b00d2a Update changelog 2013-07-10 21:14:58 +02: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