Commit graph

33 commits

Author SHA1 Message Date
John Miller
e3eca1115d ein-notebooklist: Avoid auth issues when changing host url.
When calling `ein:notebooklist-change-url-port' first make call to
notebooklist-open to ensure cookies are properly created/refreshed before trying
to save notebook and restart kernels.

Note this uses a bit of magic from deferred, which was already being used in
ein-jedi.el, but somehow never made it into the list of required pacakges. We
are now correcting that oversite.

Extend the timeout when querying the ipython/jupyter version. Also try to detect
when timeouts occur and in such cases temporarily assume a version (4 for the
moment).
2017-05-30 14:05:02 -05:00
Charl P. Botha
61ba1e9a30 ein:get-kernel works in edit-cell-mode
Modify ein:get-kernel so it can retrieve the kernel from the local
worksheet variable in edit-cell-mode. This is done so that functions
such as ein:completer-complete and tooltips / inline help are
availeble to be bound by the user.
2017-03-22 12:22:36 +02:00
John Miller
06fbab9058 Preparing for a version bump. 2017-02-16 09:19:40 -06:00
John Miller
0ede9e7ef6 Typos in slot name accessors, fix version cache to accept URL strings.
Mistyped some accessors for worksheet slot accessors. Correct
`*running-ipython-version*` hash to accept strings (i.e. URL's) as well as just
port numbers.
2017-02-01 09:51:12 -06:00
John Miller
94e334cbf0 Try to keep long running sessions from expiring
The function `ein:notebooklist-enable-keepalive` and
`ein:notebooklist-disable-keepalive`, respectively enable a timer that
ocassionally (on the order of hours) sends a query to the notebook server. The
goal is to keep cookies and sessions from expiring in long running notebooks.
We'll see if it works.
2017-01-31 10:44:04 -06:00
John Miller
b52ccbd46d Version bump, integrate docs into Cask, new doc theme.
Using alabaster for the documentation theme. Building documentation now relies
on having cask present, which does a better job of tracking dependencies than
the old way.
2017-01-17 06:55:44 -06:00
Sam Steingold
92aabe399c string-to-int is obsolete and was removed from Emacs 26.1 2016-11-16 14:14:33 -05:00
John Miller
c70dee7733 Taceback from cell edit buffer, more informative version
Jump to tracebacks from cell edit buffers.

Slightly more informative on version of jupyter we are working with.
2016-11-05 17:49:52 -05:00
John Miller
8e3764044c Update documentation, bumpb version. 2016-10-30 18:37:14 -05:00
John Miller
bdc140e446 Bump version to 0.11.0 2016-10-20 12:28:42 -05:00
John Miller
914f68bc35 Bump version. 2016-10-12 07:01:14 -05:00
Diego Berrocal
57c97ae04b HotFix: Change # for ;; as Comment Starter
Too much Python m8
2015-08-12 21:42:33 -05:00
John Miller
d1eb867cab More forgiving version detection, doc update
Be more forgiving in detecting version; this change is mostly so EIN
works with recently released Jupyter/IPython 4.0.

Adding some additional comments to documentation to note that EIN seems
to work with Jupyter.
2015-08-12 15:17:46 -05:00
John Miller
127039e2aa Bump version.
Bump version (hope I found everywhere that it is documented). Fix
old-style print statements in one of the test notebooks.
2015-07-04 08:50:53 -05: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
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
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
d8e5a3e1bc Revert "Renaming to ein2"
This reverts commit 029f72d46d.
2014-12-09 10:42:39 -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
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
Takafumi Arakaki
d0e96d0be6 Bump to 0.2.1alpha2 2013-02-10 04:12:50 +01:00
Takafumi Arakaki
93786cc61a Bump to 0.2.1alpha1 2013-01-17 11:27:39 +01:00
Takafumi Arakaki
553224241f Bump to 0.2.1alpha0 2012-12-29 18:53:05 +01:00
Takafumi Arakaki
12f01a93b2 Bump to 0.2.0 2012-12-29 18:48:01 +01:00
Takafumi Arakaki
510cb1dfcc Fix typo in ein:make-tramp-file-name 2012-12-07 21:44:42 +01:00
Takafumi Arakaki
6a9ff84a18 Add ein:version *function* 2012-09-28 16:41:35 +02:00
Takafumi Arakaki
dfd79228db Move ein:version to ein-core.el 2012-09-01 21:10:43 +02:00
Takafumi Arakaki
fe1d76278c Move scratch notebook functions to ein-junk.el 2012-09-01 18:29:09 +02:00
Takafumi Arakaki
df449b3350 Scratchsheet can be opened from connected buffer now 2012-08-31 17:21:19 +02:00
Takafumi Arakaki
cbe1ab3904 Add discard-output-p slot in ein:worksheet 2012-08-28 20:51:18 +02:00
Takafumi Arakaki
6189c8e250 Document ein:source-dir 2012-08-28 16:06:38 +02:00
Takafumi Arakaki
bf9d4f7b5d Move EIN specific stuff to ein-core from ein-utils 2012-08-28 15:36:15 +02:00
Takafumi Arakaki
338ff5267f Add ein-core.el 2012-08-28 15:26:02 +02:00