Commit graph

56 commits

Author SHA1 Message Date
dickmao
e2d86613c8 force rm will not yield error 2019-05-28 09:44:11 -04:00
dickmao
9a27d42490 need to run cask install, generally 2019-05-28 09:14:16 -04:00
dickmao
e491ac6f1c Ob-ein Improvements
Bring the org offering to feature parity.
2019-05-20 10:59:43 -04:00
dickmao
dcda68310b half-baked cookie jar messes up websocket 2019-05-07 22:46:37 -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
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
f0984eab55 jupyterhub basic (PAM only)
`ein:login` or `ein:notebooklist-login` is the preferred way to access
jupyterhub, although `ein:jupyterhub-connect` is still autoloaded.
2018-12-04 18:31:44 -05:00
John Miller
eaf7c9ccf5
Merge pull request #417 from dickmao/readme
RFC: readme revision
2018-12-03 09:54:58 -06:00
dickmao
20de508c52 make test-compile and make install
test-compile attempts to egrep "bad" warnings with hardcoded strings.
This is better than nothing, but misses a lot.  We are close
to elimiinating this hack in favor of `(setq
byte-compile-error-on-warn t)` to enforce no warnings whatsoever.  Until
then, keep adding egrep strings to `test-compile`.

Without `(package-refresh-contents)`, the `make install` won't be able
to download and install dependencies for new users.  Remedy this.

Retire files that will never be used.
2018-12-01 08:32:56 -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
6ca6752319 C-c C-q improved visual feedback
As `ein:notebok-kill-kernel-then-close-cmmand` must wait for the
server to delete the session, the buffer wouldn't disappear right
away, leaving the user nonplussed whether the `C-c C-q` took.  Display
a status message "Ending session" with a modest animation instead.

Also add a "Stop" test for notebooklist.  Sorry about breaking "Stop"
in ee3b0f0
2018-11-10 00:09:44 -05:00
dickmao
20cf261a8e fixes #399 2018-11-09 14:50:16 -05:00
dickmao
04c16cf2b0 avoid leaving EIN in an uninstallable state. Fixes #395. 2018-11-08 19:02:23 -05:00
dickmao
0e29c39929 Fixes #356
Unforeseen "timestamp" extension breaks undo
2018-11-06 13:26:33 -05: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
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
John Miller
c40f41bd6f Shortcut to run integration and functional testing without compile check. 2018-10-13 07:17:44 -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
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
db630250ac New branch for company-mode backend development. 2016-03-03 13:29:00 -06:00
John Miller
10044ddc9d Better cleanup
Remove Islands Tests.ipynb, we didn't need it. Remove temporary
notebooks after running tests - note that this is difficult to test
under Windows, so I am guessing that this is the right thing to do.
2015-06-30 17:16:10 -05:00
vagrant
a1afb096c7 Testing cleanup to run on vagrant. 2014-12-02 22:16:55 +00: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
Takafumi Arakaki
87e88bc179 Use environment variable EMACS, if defined 2013-06-11 18:20:34 +02:00
Takafumi Arakaki
6fd2a2adeb Record Python package information 2013-05-19 06:53:30 +02:00
Takafumi Arakaki
becd04fc53 Refactor Makefile; add clean and purge 2013-05-19 06:07:47 +02:00
Takafumi Arakaki
6cb611d72e Use pattern rule env-ipy.% 2013-02-10 05:33:25 +01:00
Takafumi Arakaki
6a92afbc02 Simplify Makefile
testein-default/24 etc. are very old and can be merged with the
ones used by travis test.
2013-02-10 05:28:36 +01:00
Takafumi Arakaki
0d7cf29002 Run test with curl and url-retrieve 2013-01-16 21:01:00 +01:00
Takafumi Arakaki
4ebe754f3f Add "submodule" build target 2012-12-29 17:59:21 +01:00
Takafumi Arakaki
c2433badc8 Silence ert-compile build target 2012-12-26 19:09:51 +01:00
Takafumi Arakaki
127386db47 travis-ci-zeroein: rm -rf lib/* then try again 2012-09-28 01:29:17 +02:00
Takafumi Arakaki
4a928a4eef Test that zeroein.el runs in travis 2012-09-28 01:02:25 +02:00
Takafumi Arakaki
e0731db536 Print IPython version 2012-09-19 00:52:27 +02:00
Takafumi Arakaki
8b05d26a97 Test against dev version of IPython 2012-09-19 00:50:12 +02:00
Takafumi Arakaki
58406d8eca Add env-clean/log-clean make target 2012-09-18 22:46:18 +02:00
Takafumi Arakaki
a87292d94c Run functional tests in Travis CI 2012-09-18 18:34:57 +02:00
Takafumi Arakaki
da36474302 Add IPYTHON variable in Makefile 2012-09-18 18:24:40 +02:00
Takafumi Arakaki
69ec2c14ac Do not hard code log file path in Makefile 2012-09-18 17:39:24 +02:00
Takafumi Arakaki
f368a1b5a9 Make Python virtualenv under env/
This is for testing against several IPython versions.
2012-09-18 16:17:43 +02:00
Takafumi Arakaki
fa3f2c0232 Fix travis-ci make target 2012-09-14 14:25:09 +02:00
Takafumi Arakaki
8bf54bd777 Fix testein.py path 2012-09-13 15:56:33 +02:00
Takafumi Arakaki
9834632b41 Check python --version in travis-ci make target 2012-09-13 00:03:08 +02:00
Takafumi Arakaki
814139a2a4 Use environment variable to control Emacs version 2012-09-12 19:05:20 +02:00
Takafumi Arakaki
8e92ebbaa3 Cleaner test result 2012-09-12 18:25:39 +02:00