Commit graph

30 commits

Author SHA1 Message Date
dickmao
54cb27701f remove longstanding recursive requires workaround 2020-02-29 22:35:49 -05:00
dickmao
d0d13c8277 get 25.1 to compile 2019-11-13 17:46:50 -05:00
Sam Steingold
25f2f49943 use cl-defmethod instead of defmethod
defmethod macro is obsolete.
it expands to a defun eieio-defmethod which cannot use cl-call-next-method
2018-11-08 16:24:28 -05:00
dickmao
bc10cea743 Normalize url-or-port
```
"http://localhost:8888"
"http://localhost:8888/"
"http://127.0.0.1:8888"
"http://127.0.0.1:8888/"
"8888"
8888
```

Ideally these should converge to the same thing.  Since many hash
tables are keyed off `url-or-port`, forgetting to
normalize `url-or-port` with `ein:url` leads to missed cache hits and
general malaise.  So we try to do that.

Address a FIXME: apply callbacks to `ein:notebook-list-login-and-open`.

Removed py3.5 from travis build matrix to reduce developer strain.
2018-10-12 21:55:33 -05:00
John Miller
9083cfc891 ein-traceback: Maybe use tramp to find remote files.
In tracebacks, we detect if ein is connected to a remote host, and if so try to
create a TRAMP friendly path when jumping to files from a traceback.

In response to #263.
2018-02-28 06:32:14 -06:00
John M. Miller
f771ae9504 ein-traceback: Allow opening tracback buffers from org buffers.
No default keybinding, but one can now call `ein:tb-show' from an org
buffer using ein source code blocks when one of the blocks generates a
traceback.
2018-01-10 09:14:58 -06:00
John Miller
c78711a7c4 Back to eieio
It seems there are enough people out there still on Emacs 24 to warrant undoing
some of my recent moves away from eieio to cl-generic. For the near future I
will try to keep any changes that are incompatible with Emacs 24 to a
development branch. There is still probably plenty of opportunity to make the
code more future-proof for an eventual move away from eieio (I'm looking at you
oref and sref...)
2017-07-12 14:38:04 -05:00
John Miller
39f5d329f1 Functional tests start jupyter using ein:jupyter-server-start
This reduces some of the complexity in testein.py, but unfortunately running
tests is still unreliable. Running batchwise tests don't work at all in Windows,
and running from inside emacs tests often need to be run multiple times before
they pass.

The worst offender is the delete notebook test, which will pass on usually only
1 out of 3 tries.

Testing seems to have revealed a couple bugs, so win??
2017-04-07 08:18:41 -05:00
John Miller
095d758670 Even more cl-generic-ification. 2017-03-16 16:55:10 -05:00
John Miller
b195fbdd70 ein-traceback has been cl-generic-ified. 2017-03-16 16:42:03 -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
8ec5d4638e Prototyping the object inspector buffer.
Display value of object's __repr__, link to source when available, and
documentation.

Adding command and keybinding (C-ci) to notebook buffer keymap.

Get rid of unnecessary api check when rendering notebooklist buffer.
2017-02-06 20:19:20 -06:00
John Miller
71d8994ebb Undoing earlier bone-headedness
Finally getting Sam's PR right (sorry about that, Sam). Getting the
mocker subtree into the right place because apparently I cannot type.
2016-09-23 10:37:48 -05:00
John Miller
706ff2184a Merge branch 'pr/117' 2016-09-19 10:46:43 -05:00
John Miller
ed70a26700 Set local keymap for ein's derived modes. 2016-09-19 09:02:35 -05:00
John Miller
ef949a189d Revert "derived modes inherit from special-mode or view-mode as appropriate"
This reverts commit 99de3360c3.
2016-09-15 14:14:42 -05:00
Sam Steingold
99de3360c3 derived modes inherit from special-mode or view-mode as appropriate
this means that the derived modes get all the standard keybinding in the standard way.
2016-09-13 09:32:31 -04:00
Max H. Gerlach
c7ac141b47 Jump to line in cell from traceback 2015-05-26 15:57:50 +02:00
John Miller
d2681d88e3 Proper implementation of #42, fix restart-kernel command.
Can jump to notebook cells from traceback buffer, kernel restart command
works on both IPython 2.x and 3.x.
2015-05-12 15:12:33 -05:00
John Miller
75c5f36ceb Find cell references in tracebacks, revert ein-polymode.
Traceback knows how to find notebook input cells. Roll back ein-polymode
setup - we aren't ready for that yet.
2015-05-05 21:22:36 -05:00
Takafumi Arakaki
b865b62e08 Fix ein:tb-jump-to-source-at-point for Emacs 23
fixes #90
2012-12-06 23:16:17 +01:00
Yaroslav Halchenko
a46100f532 DOC: typo in the error message (exi[s]t) 2012-12-06 12:19:09 -05:00
Takafumi Arakaki
52b0d66b01 Now all :help strings in menu are auto-generated 2012-09-01 21:32:20 +02:00
Takafumi Arakaki
6f1a11be30 Add autoload cookies 2012-09-01 20:51:55 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
71015afd45 Rename: ein:@traceback -> ein:%traceback%
%s/\_<ein:@\(traceback\)\_>/ein:%\1%/g
2012-08-18 23:02:42 +02:00
Takafumi Arakaki
714f07e759 Add ein:ewoc-create in ein-utils 2012-08-16 17:03:53 +02:00
Takafumi Arakaki
e426340cd3 Fix: ein:tb-show did not work in shared-output buffer
It did not work because ein:get-notebook does not work.  Notebook
is not well defined in shared-output buffer since it knows only
about kernel (through cell).  This reflect the design that kernel
and notebook is well decoupled.
2012-08-15 20:54:22 +02:00
Takafumi Arakaki
730741bd03 Add ein:tb-show command 2012-08-14 21:11:13 +02:00
Takafumi Arakaki
d1031fd61e mv *ein*.el ein.py lisp/
fixes #6
2012-07-02 16:47:20 +02:00
Renamed from ein-traceback.el (Browse further)