Commit graph

62 commits

Author SHA1 Message Date
John Miller
c0eabfe2ad ein-notebooklist: Fix possible bug specifying notebook urls
Don't think we were handling https:// url's correctly.

Also some code cleanup in ein-connect; fix longstanding bug in ein:load-files,
and tweak default timeout for starting a jupyter session from within emacs.
2017-10-03 10:04:41 -05:00
John Miller
213cea559e ein-jupyter: Add timeout to ein:jupyter-server-start
Add configurable timeout (see `ein:jupyter-server-run-timeout`) that will
hopefully abort calls to `ein:jupyter-server-run` that hang; this is to help
with issues like those reported in #176.

Also update documentation, dependencies in preparation for 0.13.0 release.
2017-09-03 10:29:54 -05:00
John Miller
5c2f34ceeb Implement company locate command.
ein company backend now dutifully looks for the file and line where an object is
defined when company so asks it. When ein fails in its duty it fails silently
and I am not sure yet if that is the correct behavior. For now it will stand,
until I think of something better.
2017-04-21 19:07:16 -05:00
John Miller
0ea4a9adef Cleaning up compile warnings.
Slowly move towards cl-generic instead of EIEIO.

Got rid of json encoding defadvices. So far so good.
2017-03-16 16:16:16 -05:00
John Miller
481d8a879f Smarter ein block execution in org.
Be smarter when detecting if ein source block has finished executing. Also make
timeout user-configurable via the variable `ein:org-execute-timeout`.
2016-12-28 09:41:02 -06:00
John Miller
45f9b00449 Better macro name, make sure it gets required.
Better name for support macro to temporarily disable undo, add a require to the
code where it is being used.
2016-12-18 22:19:50 -06:00
John Miller
d57c74577f Undo for cell actions: motion, insert, execute.
Some cell actions now have a true undo. Moving, inserting and executing cells
can all be undone. Deleting cell does not have an undo at the moment, though the
preferred method for users is to call ein:worksheet-kill-cell which puts the
removed cell into the kill-ring.
2016-12-16 18:01:06 -06:00
John Miller
3d50f72e0a Handle session and kernelspec slightly better.
Try to be more robust in handling session and kernelspec parameters for
org source blocks.

Get rid of submodules (again). The future is Cask.
2016-10-13 15:15:08 -05:00
John Miller
f4dfd363dc Basic support for org code blocks
We can execute code blocks via the shared output buffer, but support for
handling return values is very rudimentary.
2016-10-11 20:29:48 -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
a1489613ac Fixing null in output metadata
Somewhat hackish solution by defadvicing json.el code to
overcome possible bug in said code. Apparently
`json-encode` does not handle nested empty hash tables properly.
2016-01-03 08:23:55 -07: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
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
992104ebf5 Send proper cookie in ein:kernel-send-cookie 2012-12-17 17:39:46 +01:00
Takafumi Arakaki
827717cd0d ein:console-args can take a list as value now 2012-12-06 23:16:44 +01:00
Takafumi Arakaki
bd122efe7e Add ein:display-warning-once and use it in ein:console-make-command 2012-12-06 23:16:44 +01:00
Takafumi Arakaki
5f0f75dcc8 Add utility function ein:plist-exclude 2012-12-06 17:41:39 +01:00
Takafumi Arakaki
997e8660cd Make ein:and-let* work with edebug 2012-10-15 18:34:49 +02:00
Takafumi Arakaki
d5b741a292 Move ein:html-get-data-in-body-tag to ein-utils.el 2012-10-09 15:27:36 +02:00
Takafumi Arakaki
509064d8d8 Test ein:find-leftmot-column more and fix it 2012-10-09 14:23:06 +02:00
Takafumi Arakaki
585739e6b2 Add a command ein:worksheet-dedent-cell-text 2012-10-09 14:02:39 +02:00
Takafumi Arakaki
f41e2b206d Document ein:call-process 2012-09-28 17:00:59 +02:00
Takafumi Arakaki
6a9ff84a18 Add ein:version *function* 2012-09-28 16:41:35 +02:00
Takafumi Arakaki
5dd62427f4 Fix ein:json-encode-char: use \uNNNN for char > 126
See the patch I sent to emacs-devel and the actual fix here:

* http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/110227
* http://lists.gnu.org/archive/html/emacs-devel/2012-09/msg00701.html
2012-09-27 19:37:53 +02:00
Takafumi Arakaki
610120ded7 Simplify ein:list-move-left 2012-09-02 04:20:39 +02:00
Takafumi Arakaki
f25e3b98a7 Add utility function ein:list-move-right 2012-09-02 04:05:44 +02:00
Takafumi Arakaki
81ec270382 Add utility function ein:list-move-left 2012-09-02 04:04:45 +02:00
Takafumi Arakaki
df0b8fb45b Add ein:list-insert-before/after 2012-09-01 23:26:42 +02:00
Takafumi Arakaki
1f301973c8 Set buffer in ein:worksheet-to-json 2012-08-29 21:32:06 +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
8ce439b927 Add ein:kernel-history-request 2012-08-28 12:18:12 +02:00
Takafumi Arakaki
785355c3ca Activate codecell menu conditionally 2012-08-27 14:22:27 +02:00
Takafumi Arakaki
1a08ea429d Simple menu for notebook 2012-08-27 14:11:41 +02:00
Takafumi Arakaki
b6391d2be2 Remove ein:get-cell-at-point/traceback--notebook 2012-08-20 04:23:57 +02:00
Takafumi Arakaki
388ce0217a Add generic getter in ein-worksheet.el 2012-08-20 03:03:29 +02:00
Takafumi Arakaki
f32a169920 Move tooltip and help command to pytools
ein-notebook.el and ein-connect.el can share same command thanks to
the generic getter function.
2012-08-19 21:48:28 +02:00
Takafumi Arakaki
7ca779e836 Move ein:with-live-buffer to ein-utils.el 2012-08-19 12:44:00 +02:00
Takafumi Arakaki
714f07e759 Add ein:ewoc-create in ein-utils 2012-08-16 17:03:53 +02:00
Takafumi Arakaki
53fbf9b554 Add ein:shared-output-eval-string
This function should be usable anywhere.
2012-08-15 23:04:20 +02:00
Takafumi Arakaki
adac1a5619 Fix and improve ein:generic-getter docstring 2012-08-14 23:02:18 +02:00
Takafumi Arakaki
8ebea1b1a7 Add macro ein:and-let* 2012-08-14 21:05:13 +02:00
Takafumi Arakaki
2faeb54475 Add ein:get-traceback-data generic getter 2012-08-14 21:05:12 +02:00
Takafumi Arakaki
4d4e22912b Add ein:get-cell-at-point generic getter 2012-08-14 21:05:11 +02:00
Takafumi Arakaki
f0a4888c90 Remove ein:get-notebook-buffer 2012-08-14 21:05:08 +02:00
Takafumi Arakaki
f510e8d50f Implement "generic getter" mechanism
See the docstring of ein:generic-getter
2012-08-14 21:05:03 +02:00
Takafumi Arakaki
3b1e76f48c Add ein:display-warning 2012-08-12 17:48:24 +02:00
Takafumi Arakaki
a2446988f8 Tweak section comments in ein-utils.el 2012-08-12 17:33:35 +02:00
Takafumi Arakaki
45a20c6b54 Monkey patch json-encode-char
Otherwise, saving the output including "unicode space" (\u00a0) fails.
Easy way to check: !tree
2012-08-11 14:10:41 +02:00
Takafumi Arakaki
5888582310 Fix ein:filename-translations docstring 2012-08-04 04:16:05 +02:00
Takafumi Arakaki
c4924efdbd Refactor ein:filename-to/from-python functions 2012-08-04 02:13:14 +02:00