Commit graph

2415 commits

Author SHA1 Message Date
Konrad Hinsen
9217994839
Add a comment giving credit to @jkitchin's work 2018-02-27 09:32:51 +01:00
John Miller
7a52ebca35 Make content-api request synchronous during testing.
Testing still seems to be broken, but maybe will make a difference on travis.
2018-02-26 06:18:53 -06:00
John Miller
e9f7274ebf Merge branch 'master' of git://github.com/ebanner/emacs-ipython-notebook into ebanner-master 2018-02-26 06:16:56 -06:00
John Miller
d549896e44 Merge branch 'master' of github.com:millejoh/emacs-ipython-notebook 2018-02-25 12:47:28 -06:00
John Miller
07f19ee292
Merge pull request #272 from heroxbd/master
lisp/ein-cell-edit.el: support R in cell editing.
2018-02-25 12:46:47 -06:00
John Miller
2ebb039e82 ob-ein: Make :image header argument optional.
Inspired by @khinsen's ob-ipython-async, automatically generate filenames for
inline images. That is, make :image an optional argument for ein source blocks
in org.
2018-02-25 12:43:12 -06:00
John Miller
99b869c228 ein-kernelinfo: Structure for language agnostic info queries
EIN historically used a call to python getcwd and gethostname to get information
about the currently running kernel. This won't work with non-python kernels, so
I this is an initial attempt to abstract out the call and make it language
agnostic. Still only works in Python, but at least should not cause errors with
other languages.
2018-02-25 12:39:11 -06:00
Benda Xu
07f1e00761 lisp/ein-cell-edit.el: support R in cell editing. 2018-02-25 09:27:29 +09:00
Edward Banner
dee66e2e00 Search backward instead of forward for connection info 2018-02-21 16:13:11 -08:00
John Miller
c47587243b Merge branch 'master' of github.com:millejoh/emacs-ipython-notebook 2018-02-14 18:26:47 -06:00
John Miller
2fec7cb20e Make kernelinfo language agnostic.
Or at least don't try to call Python code when the kernel language is not
Python.
2018-02-14 18:25:23 -06:00
John Miller
045d9e9a89 Adjustments to debug logging.
Added some verbosity, removed some calls that were causing errors.
2018-02-14 18:24:20 -06:00
John Miller
5552ed2fd0 Tweak documentation.
Make mention of debugger support in feature list.
2018-02-14 18:22:39 -06:00
John Miller
b130d4b3fe
Merge pull request #270 from sam-s/master
Narrow to cell when indenting code (fix bug#269)
2018-02-14 16:42:07 -06:00
John Miller
30f4aae1dd
Merge pull request #267 from burbma/master
require ein-contents-api in ein-jupyterhub
2018-02-14 16:39:59 -06:00
Sam Steingold
32351e0cf3 Narrow to cell when indenting code (fix bug#269)
(ein:narrow-to-cell, ein:python-indent-line-function)
(ein:python-indent-region): New functions.
(ein:ml-lang-setup-python): Set
 `indent-line-function` to `ein:python-indent-line-function` and
 `indent-region-function` to `ein:python-indent-region`.
2018-02-14 11:11:26 -05:00
Matt Burbidge
12fad4d402
require ein-contents-api in ein-jupyterhub 2018-02-09 14:39:29 -07:00
John Miller
7569ab3f19 ein-cell: Maybe fix #264
This seems to fix the formatting issue reported in issue #264. So far the change
has not caused notebook data to become corrupted.
2018-01-24 17:01:48 -06:00
John Miller
63388e5d0c ein-worksheet: Make full undo an optional feature.
Full undo support, including undoing cell actions, is still unstable and can
cause corruption of worksheet data so I am making this an optional feature. See
the variable `ein:worksheet-enable-undo', which by default will be set to nil.
2018-01-24 16:35:41 -06:00
John M. Miller
2f722a31a2 ein-notebooklist: Fix for #260.
Force a query of available kernelspecs when calling `ein:notebooklist-open'.
Idea is to catch when user installs a new kernelspecs while ein is active.
2018-01-10 09:36:27 -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 M. Miller
a3511de228 ein-core: Continue efforts to make version checking more robust.
Also ensure that old byte-compiled files are deleted when rebuilding ein via
`ein:byte-compile-ein'.
2018-01-10 09:13:33 -06:00
John Miller
1bd6155005 Fix for #253.
Use `executable-find' to expand jupyter server command.
2017-11-28 07:16:20 -06:00
John Miller
27be0fd4c3 Merge branch 'master' of git://github.com/galeo/emacs-ipython-notebook into galeo-master 2017-11-22 22:54:21 -06:00
John Miller
dd0c0bfc52 ein-python: Fix for #252
EIN should properly handle indentation in the worksheet as it once did long ago.
Issues was that python mode no longer uses the global variables
`python-ident-levels' for tracking ident. Now we advise around
`python-indent--calculate-indentation'. This is an internal function so may not
be the best call, but it works.

If it breaks maybe take a look at advising `python-ident-calculate-indentation'.
2017-11-18 11:24:24 -06:00
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