Commit graph

21 commits

Author SHA1 Message Date
John Miller
ed9c0cf606 Fix for issue #162.
Add X-XSRFTOKEN header when cookie is present. See notes for notebook
[v4.3.1](https://blog.jupyter.org/2016/12/21/jupyter-notebook-4-3-1/).
2017-01-03 20:11:28 -06:00
John Miller
90c7e4501f Try to fix blocking call warning
According to the internet this is because we need a `with-local-quit` at
the right time and place.
2016-10-09 12:45:32 -05: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
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
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
Takafumi Arakaki
7901e90db7 Default ein:query-timeout is nil if curl is used
this is to address #114
2013-06-11 16:51:06 +02:00
Takafumi Arakaki
8409fa14ad Fix timeout handling in ein:query-singleton-ajax 2012-12-29 19:36:53 +01:00
Takafumi Arakaki
84ea2748fb Remove unused functions from ein-query.el 2012-12-29 19:32:43 +01:00
Takafumi Arakaki
e58ce1413e Use request-cookie-string 2012-12-29 19:30:00 +01:00
Takafumi Arakaki
9e3be6c954 Rewrite ein:query-singleton-ajax using request 2012-12-29 18:55:06 +01:00
Takafumi Arakaki
1f29b6d91e Workaround url.el bug for proper message after login 2012-12-17 19:26:13 +01:00
Takafumi Arakaki
041873b18f Better POST handling when DATA is given to ein:query-ajax 2012-12-17 17:39:46 +01:00
Takafumi Arakaki
a4c7e6d00d Add ein:query-get-cookie 2012-12-17 17:39:46 +01:00
Takafumi Arakaki
0576e54486 Log url-http-method when querying 2012-12-04 11:04:46 +01:00
Takafumi Arakaki
fc386d3647 Better error logging in ein:query-ajax--parse-data 2012-09-19 01:24:03 +02:00
Takafumi Arakaki
25f67b9874 Refactor ein-query.el: better debugging message 2012-09-18 22:46:10 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
7ca779e836 Move ein:with-live-buffer to ein-utils.el 2012-08-19 12:44:00 +02:00
Takafumi Arakaki
71ec80da82 Rename: ein:query... -> ein:%query-ajax-canceled%
%s/\_<ein:\(query-ajax-canceled\)\_>/ein:%\1%/g
2012-08-18 23:00:51 +02:00
Takafumi Arakaki
b044aca6b7 Rename: ein:query... -> ein:%query-ajax-timer%
%s/\_<ein:\(query-ajax-timer\)\_>/ein:%\1%/g
2012-08-18 23:00:24 +02:00
Takafumi Arakaki
d1031fd61e mv *ein*.el ein.py lisp/
fixes #6
2012-07-02 16:47:20 +02:00
Renamed from ein-query.el (Browse further)