Commit graph

79 commits

Author SHA1 Message Date
dickmao
e491ac6f1c Ob-ein Improvements
Bring the org offering to feature parity.
2019-05-20 10:59:43 -04:00
dickmao
cb0a819929 Julia, etc.
Prove we are agnostic about kernels.
2019-05-15 06:40:10 -04:00
dickmao
c9252ee436 cask avoid accepting input 2019-05-07 12:46:05 -04:00
dickmao
910e6ea565 can't specify version in cask install. Need to apply blunt instrument. 2019-04-29 17:16:55 -04:00
dickmao
234cf391f9 Polymode
M-x customize-group RET ein
Toggle Ein:Polymode

Avoid trying to emulate jump-to-definition, eldoc, and autocompletion
functionalities that Elpy will always do better.

Fixes #497 #482 #418
2019-04-02 09:35:17 -04:00
dickmao
0637ef212b Homebrew workaround
https://github.com/Homebrew/brew/issues/5513
2019-01-12 12:36:12 -05:00
dickmao
bead667ee0 Clean up multilang
Do not assume python... leverage ESS to improve R interaction.
Fix both undo and fontify in the presence of toggling cells (`C-c
C-t`)
Fix and test switching kernels
2018-12-08 21:25:48 -05:00
dickmao
7ce38ffaf0 RFC: readme revision
Requesting comment on README.rst geared towards brevity for new users.
2018-11-29 16:54:30 -05:00
dickmao
0490031ec8 Sane File Navigation
As emacs users we prefer and have the luxury of fuzzy file navigation
via ido and projectile.  From a notebook or notebooklist buffer, the commands

`C-c C-f` ein:file-open
`C-c C-o` ein:notebook-open

offer an ido alternative to point and click navigation.

To populate the ido lists, retrieving the content hierarchy is on by
default.  Two custom variables determine how wide and deep the content query
probes (currently at 2 levels deep and 6 directories wide).  Set both
to zero to turn off.

tkf half finished code to quickly go from local file buffers to notebook
mode via `C-c C-z` or `C-c C-o`.  This is now possible.  EIN will
start the server from a suitable parent directory of the visited file.

Enable ido completion for `notebooklist-login`.

Remove the albatross `ein-loaddefs.el` in favor of more standard
`ein-autoloads.el` that is not git tracked.

Convenience `make install` from git source (local alternative to
melpa).
2018-10-26 18:40:19 -04:00
dickmao
7a6d3c072b appveyor for msys2 2018-10-20 20:19:58 -04:00
dickmao
0345ed0b33 Try to address windows NT unseen. Add osx. Add ipython 7.0.1. 2018-10-20 00:12:34 -04:00
dickmao
085a188b20 Streamline login
Merge the login and open commands (open aliased to login).  Add login
tests described in #352.

Attempt to improve user experience by synchronously executing
`ein:jupyter-server-start`.  `ein:dev-prefer-deferred` custom variable
allows easy switch to compare sychronous versus old asynchronous behavior.
2018-10-17 16:52:10 -04:00
dickmao
c424f2ae5a workaround for emacs-26.1 travis
Delete the org-plus-contrib dependency in Cask via a fast switcheroo
in install-cask.sh
2018-10-12 21:55:33 -05:00
dickmao
11c2245c41 Asynchronize all server communication
Use deferred and callbacks instead of `:sync t` for tkf requests which
is known to have issues.  Query server attributes once on
notebooklist-open to avoid sequencing issue #176 (but allow Resync).
Under curl backend, a second request for the same "key" as a pending
request will abort the latter, which has resulted in a clobbered
curl-cookie-jar file, so merely warn and don't abort.

Fix #176
2018-10-07 00:40:48 -04:00
dickmao
ad8408dfb7 Implement undo
`M-x customize-group RET ein`
Toggle `Ein:Worksheet Enable Undo`
Save for Future Sessions
Restart emacs or kill/restart notebook

Fixes #338
2018-10-02 10:00:25 -04: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
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
Benda Xu
5ec09896a0 tools/testein.py: no retry is needed.
Our test is reproducible now.
2017-10-21 22:28:17 +09: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
ed633b1fd7 Functional tests that handle redirects. 2017-02-14 21:01:25 -06:00
John Miller
4bc3acf001 Desperate attempts to fix default coding when running testein. 2016-12-18 19:17:13 -06:00
John Miller
ea0c3e5433 testein.py: Stop emacs from launching interactively? 2016-12-18 18:17:22 -06:00
John Miller
fb31f0dec8 testein.py: Disable token authentication
I hope.
2016-12-18 18:11:33 -06:00
John Miller
abeb37e675 Testein and cask working together, maybe. 2016-12-18 16:21:03 -06:00
John Miller
cf70c7ecd9 Cleaning up testing
Trying to keep up with jupyter..
2016-09-30 13:24:28 -05:00
John Miller
6ea5c255aa Fix command template for windows
Windows did not like all those newlines. Less readable in the code but
at least it works.
2016-09-30 09:59:19 -05:00
John Miller
1d715011f0 Merge branch '38-fixing-testing' of https://github.com/millejoh/emacs-ipython-notebook into 38-fixing-testing 2016-05-17 20:14:21 -05:00
John Miller
e10bc60f30 Tweaks to functional testing and travis config.
Also adding environment definition for testing jupyter.
2016-05-17 16:22:05 -05:00
John Miller
f2697e1c69 More cleanup.
More versions of ipython we don't need to test against.
2016-04-22 15:01:13 +00:00
John Miller
43b91785ac Cleanup
Remove unsupporting versions of Ipython for testing.
2016-04-22 14:59:34 +00:00
Egon Kidmose
374dabece8 fix Typerror (str.strip got unicode, expected str) 2015-04-01 13:53:18 +02:00
Egon Kidmose
247acddbbe Requirements for ipython 3.0.0 2015-04-01 12:20:46 +02:00
millejoh
84f478aed6 Improving ipython 3 support in testein.py. Lots of fixes for notebook tests to
properly test nbformat 3 notebooks.
2015-02-02 13:20:24 -06:00
John Miller
fe7dc935c5 Fixing notebooklist-new-notebook
IPython 2.x+ has a JSON response when creating a new notebook. We detect
this and correctly parse the info so we can open a buffer with the newly
created notebook.

Also more updating of test code.
2014-12-04 13:52:36 -06:00
vagrant
a1afb096c7 Testing cleanup to run on vagrant. 2014-12-02 22:16:55 +00:00
John Miller
849adda708 Support for nbformat v4
BEWARE! This is a large commit and the code here is still mostly
untested. Back up your notebooks before giving this changeset a try with
the current IPython-dev version.

Given that, ein is now able to open and save basic notebooks saved in
nbformat 4. Still haven't tested more complex notebooks with embedded
images.
2014-11-07 19:28:09 -06:00
John Miller
c963d236c7 Documentation update and travis cleanup
Progressing back towards having automated testing via travis. Updated
contact info for ein:dev-bug-report-template and updated requirements in
README.rst.
2014-11-03 16:34:14 -06:00
Jessica B. Hamrick
b7a4692f69 Don't use GNU arguments for ps
Fixes #119
2013-06-28 15:41:36 -07:00
Takafumi Arakaki
d7cab8a225 Unfreeze tornado 2013-05-19 07:12:38 +02:00
Takafumi Arakaki
cbfc531671 Use pyzmq 2.2.0.1 when testing against IPython 0.12.* 2013-05-19 06:34:29 +02:00
Takafumi Arakaki
e1bcfe28ed Use tornado 2.4.1 when testing against IPython 0.12.* 2013-05-19 06:20:45 +02:00
Takafumi Arakaki
1fd6bbe305 Use git to install developmental version of IPython
Recent changes in IPython requires git submodule for installing
developmental version.
2013-05-19 06:01:49 +02:00
Takafumi Arakaki
e24078b03b Add request as dependency 2012-12-29 18:55:06 +01:00
Takafumi Arakaki
65f6800006 Add test_testein.py 2012-12-18 14:59:40 +01:00
Takafumi Arakaki
ba82de1bac Skip known failures by testein.py
fixes #74
2012-12-18 02:14:54 +01:00
Takafumi Arakaki
d1e710084c Better report for when test server died 2012-12-18 00:56:55 +01:00
Takafumi Arakaki
f8b2193d72 Add jinja2 as testing requirement for dev version
see: https://github.com/ipython/ipython/pull/2363
2012-12-17 22:06:11 +01:00
Takafumi Arakaki
05c6977433 Add --func-test-max-retries 2012-10-07 09:53:32 +02:00
Takafumi Arakaki
3eb69074dc Refactor testein.py: put dry_run logic in the base class 2012-10-07 09:35:25 +02:00
Takafumi Arakaki
5eece48c4e Fix tools/testein.py --dry-run 2012-09-28 02:19:31 +02:00