Moogen Tian
71536bd748
ein-jupyter: Avoid always locating jupyter server startup command
...
Instead of always prompting the user for the path to the jupyter
executable, it will try to use the value of `*ein:last-jupyter-command*' or
the value of the customizable variable `ein:jupyter-default-server-command'
when the `ein:jupyter-server-start` command is called without C-u prefix arg.
2017-11-16 15:31:41 +08:00
John Miller
f63451ca03
ein-notebooklist: Improved ein:notebook-update-url-or-port.
...
As well as going to a non-deferred implementation for
`ein:notebooklist-change-url-port' the code now properly restarts the nb kernel
when changing the server the notebook is running on.
Also a small change to the formatting of the notebooklist buffer.
2017-11-07 15:14:45 -06:00
John Miller
ebbf7da36d
ob-ein: More stable when starting sessions.
...
Still not 100%, but ob-ein behaves slightly better when trying to connect to a
notebook that is not currently open.
2017-11-07 15:13:23 -06:00
John Miller
a03eee4cd7
ein-jupyter: More timeout adjustments.
2017-11-04 11:27:31 -05:00
John Miller
c5421b090f
More eieio warning cleanup.
2017-11-04 11:27:06 -05:00
John Miller
eaded1e013
ein-kernelinfo: Warning cleanup.
2017-10-24 12:43:03 -05:00
John Miller
5f61a7fd09
ein-shared-output: Warning cleanup.
2017-10-24 12:42:41 -05:00
John Miller
58e29ea774
ein-events: Clean byte compile warnings.
2017-10-24 12:14:20 -05:00
John Miller
af13e8cdb1
ein-worksheet: Clean byte-compile warnings.
2017-10-24 12:12:50 -05:00
John Miller
8e45d4ca68
A bit of fall cleaning.
2017-10-24 12:11:20 -05:00
John Miller
7e722763ce
ein-notification: Clean up byte-compile warnings.
2017-10-24 12:10:56 -05:00
John Miller
21514a0cfc
Tidy up documentation.
2017-10-24 11:13:23 -05:00
John Miller
a20562e1fc
Prepare for version bump.
2017-10-24 11:03:50 -05:00
John Miller
08a021781f
ein-jupyter: We really need accept-process-output on Windows.
2017-10-23 19:40:06 -05:00
John Miller
9c2e6fe7c8
ein-company: Only check for punctation near completion point.
...
This will allow ein-company backend to complete in the middle of a line.
2017-10-23 19:39:00 -05:00
John Miller
f64ff2ba57
func-test: Wrap call to start server with condition-case.
...
Also fix typo in README.rst.
2017-10-23 12:09:15 -05:00
John Miller
3fa575bbf4
ein-company: Tweak punctation check.
...
Spaces should also not trigger completion.
2017-10-22 19:20:41 -05:00
John Miller
0a3e602eb5
ein-jupyter: Tweak deferred:wait factor when starting jupyter.
...
Not at all sure why, but succesfully starting jupyter and detecting login token
info is sensitive to this factor. On Windows, a call to accept-process-output
prior to the deferred chain also works, but unfortunately seems to cause issues
on some Linux installations.
For the moment a factor of 10 seems to work, but we will see what feedback from
the community is. This may need to be a customizable variable.
2017-10-22 13:58:28 -05:00
John Miller
08f0449d12
Merge pull request #246 from heroxbd/travis
...
solve the race conditions and revive function tests.
2017-10-22 10:44:39 -05:00
Benda Xu
c6d7e289c3
.travis.yml: install gnutls-bin
...
From emacs-26 on, in emacs-git-snapshot, openssl is not used at all
and gnutls-bin is required for cask to function.
2017-10-21 22:57:54 +09:00
Benda Xu
ab3cea045f
lisp/ein-jupyter.el: pull more frequent for server start output.
2017-10-21 22:37:59 +09:00
Benda Xu
56d3a0157f
Donot block for process. from the accept-process-output document:
...
Optional argument PROCESS means do not return until output has been
received from PROCESS.
If jupyter notebook is fast enough and made all the outputs, at the
time of invoking accept-process-output will block until timeout.
Revert "ein-jupyter: Try waiting for process output before logging in."
This reverts commit 9cae1ba153
.
2017-10-21 22:31:19 +09:00
Benda Xu
5ec09896a0
tools/testein.py: no retry is needed.
...
Our test is reproducible now.
2017-10-21 22:28:17 +09:00
Benda Xu
6a9df3680c
lisp/ein-notebooklist.el: add missing '.'.
2017-10-21 22:28:17 +09:00
Benda Xu
adce9b3b24
execute and debug notebooklist-open early.
2017-10-21 22:28:17 +09:00
Benda Xu
aa907826c0
tests/func-test.el: tests should be executed in a specific order.
...
ERT by default uses the lexical order.
2017-10-21 22:28:03 +09:00
Benda Xu
4795debbc8
tests/func-test.el: no need to kill notebook list buffer.
...
It is reliable now.
2017-10-21 22:27:04 +09:00
Benda Xu
c759c9a280
lisp/ein-notebooklist.el: print password explicit in debugging mode.
2017-10-21 22:21:05 +09:00
Benda Xu
21ba5f45ac
tests/func-test.el: look for URL and output captured token.
...
Some environment can be slow so that even if "The Jupyter Notebook is
running" appears, the notebook URL with token is not available.
Test exactly for the URL.
2017-10-21 22:19:38 +09:00
Benda Xu
be5000b84e
.travis.yml: set up build environment.
...
1. no need to install git explicitly.
2. install emacs before `cask install`, otherwise the cask packages
are installed for system emacs.
3. pip installation as root, otherwise the debug session
travis_run_install hangs with 'Permission Denied'.
2017-10-21 22:19:38 +09:00
John Miller
4909b176dc
Merge pull request #245 from sam-s/master
...
fix a typo in 34902e1
2017-10-20 13:57:29 -05:00
Sam Steingold
05ba2e257a
fix a typo in 34902e1
2017-10-20 14:32:53 -04:00
John Miller
d7e1aece02
ein-company: Make sure matches actually start with right text.
...
This should address the original problem described in #225 .
2017-10-20 12:05:01 -05:00
John Miller
34902e104f
ein-company: Avoid completing around punctuation.
...
For some reason this causes the IPython kernel to return a very large number of
potential matches.
2017-10-20 11:55:31 -05:00
John Miller
75c3925f58
Merge pull request #242 from sam-s/master
...
add ein:notebook-reconnect-kernel to menu
2017-10-19 21:27:13 -05:00
Sam Steingold
0be2524001
add ein:notebook-reconnect-kernel to menu
2017-10-19 12:37:22 -04:00
John Miller
e0e3fac0c4
ein-connect: Missed a couple oref's.
2017-10-03 10:17:47 -05:00
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
9cae1ba153
ein-jupyter: Try waiting for process output before logging in.
...
Wait using `accept-process-output` before trying to look for auth tokens and
logging into the jupyter server.
2017-10-02 10:16:50 -05:00
John Miller
0b79ac056b
Merge branch 'test' of git://github.com/heroxbd/emacs-ipython-notebook into heroxdb-test
2017-09-30 16:14:34 -05:00
John Miller
0bc7ab813a
ein-inspector: Getting organized, remove cruft.
2017-09-30 16:06:36 -05:00
Benda Xu
77fa27cc08
tests/func-test.el: path nil is not equivalent to "".
...
revert to the original design.
2017-09-30 21:42:26 +09:00
Benda Xu
7c05039752
tests/func-test.el: close jupyter server after tests.
2017-09-30 21:41:15 +09:00
Benda Xu
745673926a
lisp/ein-notebooklist.el: defer notebooklist instead of buffer.
...
The buffer could be killed after the callback.
2017-09-30 21:34:00 +09:00
Benda Xu
661bb1c7f1
.travis.yml: pass full path of jupyter to tests.
...
(file-exists-p server-cmd-path) in ein:jupyter-server-start
requires full path.
2017-09-30 21:27:16 +09:00
Benda Xu
5e1f3ed665
tests/func-test.el: jupyter notebook could be started without token.
...
Wait for the message indicating the server has been started.
2017-09-30 21:19:16 +09:00
Benda Xu
52403097f0
tests/func-test.el: wait for the notebooklist buffer to appear.
2017-09-30 21:18:38 +09:00
Benda Xu
822ba97023
tests/func-test.el: pass kernelspec as a real ein:$kernelspec.
...
A simple pair does not work.
2017-09-30 21:17:09 +09:00
Benda Xu
afedb014ca
tests/func-test.el: revert back to tkf's code.
...
cl-find does not work here.
2017-09-30 21:15:46 +09:00
Benda Xu
077de69d94
lisp/ein-notebooklist.el: dash is needed to provide -group-by.
2017-09-30 14:35:36 +09:00