John Miller
02b790665b
Fix (maybe) encoding issues when saving notebooks.
...
This hopefully fixes issues #142 and #133 .
2016-12-01 21:10:20 -06:00
John Miller
2b7b9f20fa
Improving ipdb support.
...
EIN ipdb buffer should look better on Linux machines now. The extra characters
were someone's (ipython?) attempt at doing ansi coloring I think.
Also trying to make the ipdb comint buffer more canonical, with the hope to get
it to work with realgud. Not quite there yet, unfortunately.
2016-11-29 22:06:03 -06: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
Sam Steingold
92aabe399c
string-to-int is obsolete and was removed from Emacs 26.1
2016-11-16 14:14:33 -05:00
Josiah Schwab
23c8148cb7
Update notebooklist url functions to work with jupyter
...
Previously, base-path would be nil when version was 4 (corresponding
to the current jupyter release).
2016-11-11 09:48:47 -08:00
John Miller
7978961d96
Save a copy of the notebook, fix deleting notebooks.
...
Can save a copy of an existing notebook to a new name via
`ein:notebook-save-to-command` (I still haven't thought of a good,
default keybinding, however).
Deleting notebooks now works again.
2016-11-10 21:31:38 -06:00
John Miller
c669d8aa54
Overlays that work
...
Overlay to make text being edited read-only, but not so read-only
that we can't save text from the edit popout buffer.
2016-11-10 18:20:19 -06:00
John Miller
17a445946d
Polishing cell edit buffer.
...
Now with overlays and better point motion in the original buffer!
2016-11-10 07:13:16 -06:00
John Miller
c70dee7733
Taceback from cell edit buffer, more informative version
...
Jump to tracebacks from cell edit buffers.
Slightly more informative on version of jupyter we are working with.
2016-11-05 17:49:52 -05:00
John Miller
8e3764044c
Update documentation, bumpb version.
2016-10-30 18:37:14 -05:00
John Miller
684ccbede4
Merge branch 'master' of github.com:millejoh/emacs-ipython-notebook
2016-10-30 11:41:10 -05:00
Jonas Bernoulli
ec28c8f69a
Remove accidentally checked in file
2016-10-30 11:56:52 +01:00
John Miller
19303cb637
Fix notebooklist render, remove connect_request
...
Notebooklist was not showing kernel status anymore.
Connect_request messages are deprecated since v5.0 of the messaging
spec, and ein never did much anyway with the message.
2016-10-29 09:43:40 -05:00
John Miller
1c04701a90
Only autosave if the buffer has been modified.
2016-10-28 14:54:07 -05:00
John Miller
fb1fd315a6
Anaconda-mode workaround, building for a multi-language kernel
...
Small hack to allow python mode source editing popout buffers (ala C-c')
work with anaconda-mode.
Do major mode selection based on language specified in kernelspec, this
should allow better support when using ein with kernels other than python.
2016-10-28 14:13:32 -05:00
John Miller
c9894d14b7
Cleanup, slightly more informative docs.
2016-10-26 14:08:19 -05:00
John Miller
6ec7789454
Execute the cell as you edit it.
...
You can now execute cells in the edit sub-buffer and the results will
magically appear in the original notebook. Awesome!
2016-10-26 13:25:52 -05:00
John Miller
a518fb4f24
Better buffer switching behavior after editing.
...
Make transition out of cell edit buffers smoother.
Taking a look at Python code for finding source of python objects.
2016-10-26 11:02:25 -05:00
John Miller
c0144e2cbf
Edit notebook cells in popout buffer ala org-mode
...
Using C-c', users can create a temporary buffer running an appropriate
mode to edit the contents of a notebook cell. This functionality is
intentionally very similar to what org-mode provides for editing blocks
of code or other.
2016-10-25 18:00:51 -05:00
John Miller
37f8e4d041
Merge branch 'master' into org-babel
2016-10-24 14:56:17 -05:00
John Miller
dd494cba59
Less talkative notebook saving.
...
EIN now logs messages regarding notebook saving using 'verbose level.
2016-10-23 19:26:21 -05:00
John Miller
701ddbe39c
Autosaving and checkpoints as distinct actions.
...
Saving a notebook and creating a checkpoint are related, but distinct
activities. EIN does better now with this distinction. See updates to
the documentaiton (which should get pushed to github any day now).
2016-10-21 12:10:49 -05:00
John Miller
bdc140e446
Bump version to 0.11.0
2016-10-20 12:28:42 -05:00
John Miller
c7bf4f6521
Update docs, get scoping right for notebook checkpoint calls
...
Document the new checkpoint functions. Fix issue that was preventing
the list of checkpoints from being updated in the notebook.
2016-10-20 11:14:23 -05:00
John Miller
bb95f71f5e
Give ein notebooks content checkpoint functionality.
2016-10-19 14:43:19 -05:00
John Miller
7d8474e2c4
Low level support for managing notebook checkpoints.
...
Via the Jupyter contents REST API.
2016-10-19 11:57:34 -05:00
John Miller
f74c19ecb6
Revert "Moving away from eieio to cl-generic"
...
This reverts commit 55176c3a4c
.
2016-10-17 17:20:41 -05:00
John Miller
62d9f1117d
Moving away from eieio to cl-generic
...
The goal is to eventually eliminate most of the warnings that are
generated when byte-compiling ein.
Do this over several commits to make it easier to revert in the likely
event that something breaks.
2016-10-17 17:20:41 -05:00
Robert O'Connor
1fc20669bc
This seems to be the culprit for #119
...
Fixes #119
Also Resolves syl20bnr/spacemacs#7181
2016-10-16 22:31:23 -04:00
John Miller
7cab72cac3
Stability fixes.
...
Get the call signature correct, try to avoid always calling
`ein:query-kernelspec`.
2016-10-16 19:52:01 -05:00
Sam Steingold
42031dbee6
do not assume we are always connected to a server
...
(ein:notification-tab-create-line ((tab ein:notification-tab))):
do not fail when (ein:$notebook-kernelspec ein:%notebook%) returns nil
2016-10-15 23:46:04 -04:00
John Miller
11a95db183
Merge remote-tracking branch 'refs/remotes/origin/master' into org-babel
...
# Conflicts:
# lisp/ein-core.el
2016-10-15 13:11:38 -05:00
John Miller
3d50f72e0a
Handle session and kernelspec slightly better.
...
Try to be more robust in handling session and kernelspec parameters for
org source blocks.
Get rid of submodules (again). The future is Cask.
2016-10-13 15:15:08 -05:00
John Miller
ea9933ec9d
Better return values, except for images
...
Do a better job return results of code execution, however images are not
being saved to file. Very unsure why this is.
2016-10-12 13:42:19 -05:00
John Miller
914f68bc35
Bump version.
2016-10-12 07:01:14 -05:00
John Miller
f4dfd363dc
Basic support for org code blocks
...
We can execute code blocks via the shared output buffer, but support for
handling return values is very rudimentary.
2016-10-11 20:29:48 -05:00
John Miller
90c7e4501f
Try to fix blocking call warning
...
According to the internet this is because we need a `with-local-quit` at
the right time and place.
2016-10-09 12:45:32 -05:00
John Miller
256b14a49f
Make synchronous comm a user configurable parameter.
...
EIN can communicate with the jupyter contents API synchronously or
asyncronously, with the default behavior the latter. For a time it has
been possible to force synchronous from the code, but now I have made
that a user-configurable parameter (see `ein:force-sync`).
2016-10-05 11:39:54 -05:00
John Miller
f9bcc3f1ca
Check if variable exists
...
Because we aren't sure this variable is available in earlier versions of
emacs.
2016-09-30 15:18:58 -05:00
John Miller
f07b5ad7f0
execute_result is the new pyout
...
Caught one! "pyout" messages are now called "execute_result", so we
should act accordingly. Before "execute_result" was being treated as
"display_data".
2016-09-30 13:26:54 -05:00
John Miller
b242519fa5
Merge branch 'master' into 38-fixing-testing
2016-09-24 12:26:24 -05:00
John Miller
71d8994ebb
Undoing earlier bone-headedness
...
Finally getting Sam's PR right (sorry about that, Sam). Getting the
mocker subtree into the right place because apparently I cannot type.
2016-09-23 10:37:48 -05:00
John Miller
706ff2184a
Merge branch 'pr/117'
2016-09-19 10:46:43 -05:00
John Miller
ed70a26700
Set local keymap for ein's derived modes.
2016-09-19 09:02:35 -05:00
John Miller
ef949a189d
Revert "derived modes inherit from special-mode or view-mode as appropriate"
...
This reverts commit 99de3360c3
.
2016-09-15 14:14:42 -05:00
Sam Steingold
6f23cf4536
make mouse-buffer-menu (C-mouse1) group ein buffers
2016-09-13 09:44:06 -04:00
Sam Steingold
4297ea0fc8
set and make-local-variable in one form
...
This is clearer and complies with the traditional Emacs coding style.
2016-09-13 09:33:25 -04:00
Sam Steingold
99de3360c3
derived modes inherit from special-mode or view-mode as appropriate
...
this means that the derived modes get all the standard keybinding in the standard way.
2016-09-13 09:32:31 -04:00
John Miller
e98003f8fd
Make zeroein.el work with subtrees
2016-09-09 10:07:35 -05:00
John Miller
40b34cd8b5
Close opened buffer from notebooklist buffer.
...
Do a better job with lexical-let's, add close command to opened notebook
list.
2016-09-04 17:58:55 -05:00