Commit graph

42 commits

Author SHA1 Message Date
dickmao
db2856f445 Restart if kernel still alive needs to work 2018-11-01 20:08:10 -04:00
dickmao
b950bd3a4c Fix "Kernel is busy..." bug
One line change to fix header not updating after cell execution
(keeps saying "Kernel is busy").

The bug does not manifest when running with `ein:debug` true since
EMACS's display loop updates more frequently with debug messages.

In tracking this bug, noticed eldoc support isn't quite there.
`__import__('ein').print_object_info_for(%s)` appears in
`ein-completer` and `ein-pytools`, and is invalid python syntax
afaict.  Took a few steps to make it whole, but incomplete.
2018-10-27 23:04:04 -04: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
dickmao
ec28cbe708 revive tkf tests
`make test-unit`
`make test-int` (formerly `cask exec ert-runner`)
An intermittent travis-melpa issue is solved by gonewest818.
2018-09-27 00:52:00 -04:00
John Miller
7e722763ce ein-notification: Clean up byte-compile warnings. 2017-10-24 12:10:56 -05: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
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
f7225a65ba More informative notification, assume python when no kernelspec.
Improved notification in the header when the notebook has no associated
kernelspec.

For advanced cell editing assume codecells contain python code when the notebook
has no associated kernelspec.
2016-12-14 15:55:18 -06:00
John Miller
701ddbe39c Autosaving and checkpoints as distinct actions.
Saving a notebook and creating a checkpoint are related, but distinct
activities. EIN does better now with this distinction. See updates to
the documentaiton (which should get pushed to github any day now).
2016-10-21 12:10:49 -05:00
Sam Steingold
42031dbee6 do not assume we are always connected to a server
(ein:notification-tab-create-line ((tab ein:notification-tab))):
do not fail when (ein:$notebook-kernelspec ein:%notebook%) returns nil
2016-10-15 23:46:04 -04:00
John Miller
9ca012d1c2 Better notification header.
Interactivity! Click to switch kernels.

Also fixed an embarassing typo...
2016-08-31 09:37:58 -05:00
John Miller
e49fe22774 Bug fix, better info on running kernel.
Fixed bug with `ein:notebook-open-in-browser`; this command should now
work in IPython notebook 3.0 and later.

Notebook/worksheets now display the name of the kernel that the notebook
is running under. Next step is to make this clickable!

Also some documentation for my new super-secret project to add
evaluation of dynamic javascript to ein.
2016-08-31 09:13:25 -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
Takafumi Arakaki
1848fc2f6a Add [+] button 2012-10-10 00:57:26 +02:00
Takafumi Arakaki
1fe2c1cb15 Rename: ein:header-line-tab-map 2012-10-10 00:39:58 +02:00
Takafumi Arakaki
809351bc81 Refactoring: define mouse commands by macro 2012-10-10 00:37:19 +02:00
Takafumi Arakaki
62212a2edc Switch window when header-line is clicked 2012-10-10 00:20:27 +02:00
Takafumi Arakaki
dbb2acc4ce Update tooltip help 2012-10-10 00:09:11 +02:00
Takafumi Arakaki
960fddf330 S- left/right click to move worksheet (tab) 2012-10-10 00:06:54 +02:00
Takafumi Arakaki
7fb3da82af Add tooltip help 2012-10-09 23:59:56 +02:00
Takafumi Arakaki
80bbd6d7b0 M- left/right click to insert worksheet (tab) 2012-10-09 23:54:40 +02:00
Takafumi Arakaki
a8aecc52d7 Add insert-next/prev slots to ein:notification-tab 2012-10-09 23:51:12 +02:00
Takafumi Arakaki
cc0f96e6e9 Refactor ein:notification-setup 2012-10-09 23:35:36 +02:00
Takafumi Arakaki
1dee471f37 Fix function name: ein:header-line-delete-this-tab 2012-10-09 23:25:45 +02:00
Takafumi Arakaki
0d86295cf4 Set delete slot in ein:notification-setup 2012-10-09 23:25:34 +02:00
Takafumi Arakaki
925ceaec07 Add ein:header-line-key-delete-this-tab 2012-10-09 23:17:43 +02:00
Takafumi Arakaki
5be1c716d6 Refactor ein:header-line-key-event-get-buffer 2012-10-09 23:17:11 +02:00
Takafumi Arakaki
9a8e29b7c4 Make header line TABs clickable 2012-10-09 23:10:26 +02:00
Takafumi Arakaki
a6ee4a0ef1 Tweak ein:notification-setup docstring 2012-10-09 22:56:40 +02:00
Takafumi Arakaki
2ce2558b12 Add get-buffer slot in ein:notification-tab 2012-10-09 22:56:17 +02:00
Takafumi Arakaki
eb6d0ced49 Show execution count on header line 2012-10-09 20:24:17 +02:00
Takafumi Arakaki
0af99780cb Make header tab more like chrome: /1: TAB\ 2012-10-09 18:48:33 +02:00
Takafumi Arakaki
0824110f66 Add FIXME: ein:notification--fadeout-callback 2012-09-02 06:16:55 +02:00
Takafumi Arakaki
7d604af49d Make "Notebook is saved" message volatile 2012-09-02 06:08:56 +02:00
Takafumi Arakaki
8c682252f0 Add simple tab in the header line 2012-09-02 05:50:38 +02:00
Takafumi Arakaki
e3f15e649c Simplify notification module setup 2012-08-28 21:48:06 +02:00
Takafumi Arakaki
ca8c1678fe (require 'ein-utils) -> (require 'ein-core) 2012-08-28 15:26:32 +02:00
Takafumi Arakaki
a2d49ca51d Simplify ein:notification--fadeout-callback 2012-08-19 12:45:22 +02:00
Takafumi Arakaki
4037bcc91f Restore current buffer in ein:notification--fadeout-callback 2012-08-19 12:21:57 +02:00
Takafumi Arakaki
26a6dfe6ff Fix: ein:notebook is referenced 2012-08-19 04:34:47 +02:00
Takafumi Arakaki
5bbb240eef Rename: ein:@notification -> ein:%notification%
%s/\_<ein:@\(notification\)\_>/ein:%\1%/g

Define obsolete alias, to make test pass.
2012-08-18 23:02:20 +02:00
Takafumi Arakaki
d1031fd61e mv *ein*.el ein.py lisp/
fixes #6
2012-07-02 16:47:20 +02:00
Renamed from ein-notification.el (Browse further)