Commit graph

52 commits

Author SHA1 Message Date
dickmao
e0369c28a6 add curl trace to M-x ein:log-pop-to-request-buffer 2019-03-21 15:28:42 -04:00
dickmao
831508d615 spacemacs diagnostic 2019-03-17 12:00:43 -04:00
dickmao
67e82d2f94 Move self-diagnosing information
Move self-diagnosing information from CONTRIBUTING.md to README.in.rst
2019-03-09 12:52:03 -05:00
Sam Steingold
48fa153435 Use standard functionality instead of ad hoc functions
(ein:filter identity ...) ---> (delete nil ...)
ein:filter --> seq-filter
hash-vals --> hash-table-values
hash-keys --> hash-table-keys
2019-01-15 11:26:09 -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
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
dickmao
d4ef4ed81c Allow disabling of autocomplete
```
M-x customize-group RET ein-completion
```
Set `Ein:Completion Backend` to `ein:use-none-backend`, Set `State` to
`Save for Future Sessions`.

Also use `featurep` and `with-eval-after-load` to clean up the
subpackage requiring gymnastics.
2018-11-28 17:45:23 -05:00
dickmao
d621944797 Clean up websocket callbacks
Coursera appears to kill websockets every minute or so, and I'm
observing firsthand the buggy behaviors described in #356.  This PR
cleans up the websocket code and kernel restart logic.  Removed
backwards compatibility for the v2 messaging api
as keeping it in the presence of the refactoring would make it more
broken that it already was.
2018-10-31 23:38:45 -04:00
John Miller
e1b26550b2 ein-dev: Don't try to require ein-autoloads.el
Fix is mostly so we can continue to build the documentation.
2018-10-26 21:20:44 -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
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
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
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
e88f7f3d5f Fix for #188.
Make even more unique edit-cell buffer names. Check that an edit-cell-buffer
does not already exits before creating one.

Also try to be even more aggressive in limiting output in backtraces when
debugging ein.
2017-04-02 08:59:02 -05:00
John Miller
3412470b61 More convenience finding the channels debug buffer
Post Ipython 2.0 there are no longer separate websocket connections for iopub
and shell, they now share the same websocket connect. This is a simple
convenience function for finding the websocket log buffer for the new-style
connection.
2017-01-19 11:27:22 -06:00
Sam Steingold
7dd59f469f pass the required LIMIT' arg to looking-back' 2016-12-05 09:03:59 -05:00
John Miller
87053c7459 Formatting, tweaks to menu and an improved error message.
Adding a couple commands to EIN's menu and an attempt to make cell execution
message more informative.
2016-11-23 12:34:06 -06:00
John Miller
a1489613ac Fixing null in output metadata
Somewhat hackish solution by defadvicing json.el code to
overcome possible bug in said code. Apparently
`json-encode` does not handle nested empty hash tables properly.
2016-01-03 08:23:55 -07:00
John Miller
a4ab2a52f5 Simplifying and fixing code for saving notebooks
Code for generating v4 notebook json much cleaner and easier to
understand. As added bonus have fix for saving images.
2015-12-22 12:32:21 -06: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
9637ea7317 Fix null metadata
ein was incorrectly writing empty metadata as a Null object, which was
causing errors in ipython.

Added a helper function to write json encoding of a notebook to a
temporary buffer to help debug code for encoding nbformat4 json from
cell data.
2015-01-09 10:00:22 -06:00
John Miller
88ef3c3e1b Documents - grammar and refs update
Correcting grammar in documents, updating software version and
references.
2014-12-16 07:21:32 -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
Takafumi Arakaki
7f17f3bc43 Improve bug report template
to avoid trouble like #104.
2013-02-23 16:35:08 +01:00
Takafumi Arakaki
10db056db4 Record request.el configuration 2013-01-16 21:01:01 +01:00
Takafumi Arakaki
bdb107a71d Include request in ein:dev-sys-info 2013-01-10 22:20:33 +01:00
Takafumi Arakaki
06b559af35 Do not delete existing bug report buffer 2012-12-26 19:30:16 +01:00
Takafumi Arakaki
6e352cd6d6 Do not show sys-info for non-existing packages 2012-12-26 19:01:46 +01:00
Takafumi Arakaki
36cb66307f Make sys-info printing prettier 2012-12-26 18:58:53 +01:00
Takafumi Arakaki
4ff3c89e7b Improve ein:dev-bug-report-template: IPython version 2012-12-06 00:14:26 +01:00
Takafumi Arakaki
f2e7a92441 Record emacs-bzr-version 2012-10-07 07:00:43 +02:00
Takafumi Arakaki
b01dd3250e Renae ein:notebook-org-src-mode to ein:notebook-multilang-mode 2012-09-30 20:24:09 +02:00
Takafumi Arakaki
200bee5e0d Use `(ein:version)' from ein:dev-sys-info 2012-09-28 16:53:08 +02:00
Takafumi Arakaki
a46c8c23ce Mention CONTRIBUTING.md in ein:dev-bug-report-template 2012-09-28 15:22:55 +02:00
Takafumi Arakaki
17d97cf62d More information listed by ein:dev-sys-info--lib 2012-09-28 14:53:23 +02:00
Takafumi Arakaki
cc8658e900 Dump important EIN variables in ein:dev-sys-info 2012-09-28 14:46:48 +02:00
Takafumi Arakaki
05f2d1a8f3 Add more in ein:dev-bug-report-template 2012-09-28 01:44:04 +02:00
Takafumi Arakaki
1478ddf6e1 Add ein:dev-bug-report-template 2012-09-27 23:42:57 +02:00
Takafumi Arakaki
def69d4ae1 Include OS version in ein:dev-sys-info 2012-09-27 22:56:25 +02:00
Takafumi Arakaki
9321661867 Safer ein:dev-sys-info 2012-09-13 00:03:41 +02:00
Takafumi Arakaki
35b6e64658 Add :image-types-available in ein:dev-sys-info 2012-09-13 00:03:12 +02:00
Takafumi Arakaki
77abf26bfd Show system info in testein.py 2012-09-13 00:03:02 +02:00
Takafumi Arakaki
9ebb9582bc Add ein:dev-show-sys-info 2012-09-13 00:03:00 +02:00
Takafumi Arakaki
da74f92d47 Modify ein:dev-require-all to make test run-able 2012-09-12 16:35:31 +02:00
Takafumi Arakaki
1a6463937e Add ein:dev-notebook-org-src-mode 2012-09-04 18:39:28 +02:00
Takafumi Arakaki
6f1a11be30 Add autoload cookies 2012-09-01 20:51:55 +02:00
Takafumi Arakaki
16efe28448 Fix compile warning in ein-dev.el 2012-09-01 20:30:05 +02:00
Takafumi Arakaki
e38bb5d528 Test that functions in ein:*-mode-map are bounded 2012-08-20 15:50:26 +02:00
Takafumi Arakaki
733e68284a Rename: ein:notebook -> ein:%notebook%
%s/\_<ein:notebook\_>/ein:%notebook%/g

Define obsolete alias, as user might use this variable.
2012-08-18 22:59:31 +02:00
Takafumi Arakaki
e75c562181 Don't require rst.el in ein-dev.el
This workarounds the bug in rst.el:

rst.el: Symbol's function definition is void: copy-list
https://sourceforge.net/tracker/?func=detail&aid=3551316&group_id=38414&atid=422030
2012-07-29 14:18:30 +02:00