Commit graph

889 commits

Author SHA1 Message Date
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
John Miller
812757fcc3 Revert "Basic javascript support via skewer.el"
This reverts commit 9e39797ce7.
2016-09-03 18:10:07 -05:00
John Miller
9e39797ce7 Basic javascript support via skewer.el
EIN will try to use skewer to execute javascript cells, which works for
the most part. Those hoping to have widgest or something like d3 working
are going to be disappointed, however, as at its heart ein is not an
HTML page and those packages depend on modifying the DOM of the notebook
web page.

It remains to be seen if those issues are surmountable, but for the
moment this functionality will live in this branch and this branch
alone.
2016-09-03 18:01:57 -05:00
John Miller
0c47d8078d Bump version. 2016-08-31 10:17:38 -05:00
John Miller
afc6ca6102 More informative notebooklist buffer
It may be info overload, but notebooklist buffers will now list all
opened notebooks.
2016-08-31 10:04:06 -05:00
John Miller
9ca012d1c2 Better notification header.
Interactivity! Click to switch kernels.

Also fixed an embarassing typo...
2016-08-31 09:37:58 -05:00
John Miller
e49fe22774 Bug fix, better info on running kernel.
Fixed bug with `ein:notebook-open-in-browser`; this command should now
work in IPython notebook 3.0 and later.

Notebook/worksheets now display the name of the kernel that the notebook
is running under. Next step is to make this clickable!

Also some documentation for my new super-secret project to add
evaluation of dynamic javascript to ein.
2016-08-31 09:13:25 -05:00
John Miller
5043ba9bb6 A little bit of documentation, add to menu
Document the new interactive function `ein:notebook-switch-kernel`
and add it to the menu. Not sure yet if it is worth giving a default
keybinding.
2016-08-28 20:56:00 -05:00
John Miller
586879598a Switch kernel in running notebook.
Does so by changing kernelspec and restarting notebook.
2016-08-26 20:52:54 -05:00
John Miller
a9736311c8 Fix what was broken with shared output buffers.
Regression from previous commits adding slide features.
2016-07-25 08:21:50 -05:00
John Miller
04c12f8ab2 Update version, documentation, formatting.
Version bump to 0.9, documentation for new slide functions and
correcting formatting from recent pull requests.
2016-07-23 08:32:22 -05:00
John Miller
67e5253e5e Respect slideshow customization variable
Setting of `ein:worksheet-show-slide-data` wasn't actually doing
anything.
2016-07-22 08:57:11 -05:00
John Miller
3e1baa0657 Toggle viewing of slide metadata in worksheet.
Let the user control whether or not to view slide attributes in current
worksheet via `ein:worksheet-toggle-slideshow-view` (C-c S).

Also added a couple more slide attributes (fragment, notes) as
these appear to be support in current Jupyter version.
2016-07-20 12:50:04 -05:00
Guillaume Anciaux
d7d65f6ac8
fix the default slide and fix a problem at creation of new cells 2016-07-19 17:21:38 +02:00
Guillaume Anciaux
62c0c21d28
cleaning some debug messages 2016-07-19 10:46:50 +02:00
Guillaume Anciaux
1c549e72d7
addîng the slide info in prompt and allow switch slide type with C-c C-d 2016-07-19 10:37:00 +02:00
John Miller
5245d70087 Setuptools for testing
Depending on Makefile ties us to Unix systems. Automating testing
and setup through setuptools might make testing on Windows less
complicated.
2016-07-02 19:12:49 -05:00
John Miller
43b91785ac Cleanup
Remove unsupporting versions of Ipython for testing.
2016-04-22 14:59:34 +00:00
John Miller
b26c972ec8 Merge remote-tracking branch 'refs/remotes/origin/88-enhancement-latex-images' 2016-04-22 08:29:01 -05:00
John Miller
8aaae29a23 Fix what introducing kernelspecs broke.
Embarassing, really. Missing parameters and some poorly placed branching
logic conspired to bring down ein on IPython 2.x. Should be better now.
2016-04-15 16:08:53 -05:00
John Miller
43471c771d Better pretty printing defaults.
Make text output the last option when pretty printing is enabled
(eg when ein:output-type-preference is set to
ein:output-type-prefer-pretty-text-over-html). This will at least make
%%latex cells output the latex inside. Next step - automatically typeset
the math!
2016-04-15 13:16:05 -05:00
John Miller
6170931932 Cleanup, documenting options for inline Latex images 2016-04-12 17:35:37 -05:00
John Miller
71ee42a803 Load secure cookies when using secure connection.
Secure connections (i.e. wss, https) store cookies in a secure jar,
websocket connections now take this into account when connecting
using wss protocol.
2016-04-08 21:22:14 -05:00
John Miller
8efa954308 Account for when url-or-port is an integer
For determining websocket protocol, if url-or-port is an integer don't
need to check if it contains `https://`.
2016-03-30 21:38:33 -05:00
John Miller
847d4a0d3e closes #81
This works by detecting if 'https:' appears in the url-or-port string,
which will be the case if you call `ein:notebooklist-open` using https:
+ url + port.

Note also that on windows, at least, I get SSL errors when using curl as
request backend. Using url-retrieve eliminates the errors and SSL access
works as advertised.
2016-03-30 21:32:14 -05:00
John Miller
ca0557b029 Bump version to 0.8.2. 2016-03-23 12:40:51 -05:00
John Miller
bd9668702a Fix for issue #92
Use lexical-let vs let in `ein:notebooklist-render.`
2016-03-23 12:31:47 -05:00
John Miller
7e4df981c8 Fix for issue #91
Corrected `ein:junk-new` to include kernelspec selection.
2016-03-22 07:47:11 -05:00
John Miller
9fc8dd3be4 Update version to 0.8.1. 2016-03-10 15:19:29 -06:00
John Miller
a752e45772 Undo buffer-file-name madness.
No longer set buffer-file-name for ein:notebook buffers. This was
causing unexpected and potentially disastrous (as in data corruption)
behavior.

Some updates to travis configuration and testing. Still a long ways
from having that working, though.
2016-03-03 08:31:05 -06:00
John Miller
c5cf44a795 Fix saving new notebooks, whitespace updates.
Newly created notebooks no longer error on saving - bug in how
kernelspec metadata was being filled in.

Also a number of miscellaneous fixes to indentation that have
inexplicably appeared in the code.

Some small fixes for typos and catching up on version info.
2016-03-01 16:02:00 -06:00
John Miller
261576f94b Fix Issue #67.
Only six months late. Jupyter changed callback signature for
complete_request, breaking ein's autocomplete code. Missed this for so
long because I am lazy and almost exclusively used jedi for
autocompletion. Ugh.
2016-02-03 22:26:53 -06:00
John Miller
a803bb0f54 More v0.8.0 bumping. 2016-02-03 08:41:55 -06:00
John Miller
3d2b3a81d1 Merge branch 'fix/ein-direct-void' of https://github.com/AlejandroCatalina/emacs-ipython-notebook into AlejandroCatalina-fix/ein-direct-void 2016-02-02 20:50:34 -06:00
John Miller
24afb15985 Bump to v0.8.0 2016-02-02 12:12:46 -06:00
Alejandro Catalina
c87bb4f6df Fix (void-symbol ein-direct)
When setting ein to use `auto-complete` in either basic or superpack
mode I get this ein-direct symbol is void error.
2016-02-02 14:54:44 +01:00
Syohei YOSHIDA
9871e433f9 Add missing cl-generic dependency 2016-01-19 13:36:54 +09:00
John Miller
6facffd586 Be even more respectful of kernelspec data. 2016-01-13 18:24:59 -06:00
John Miller
5dec56eec2 Respect kernelspec info in notebook metadata.
This should allow us to reload notebooks using the same
kernel they were running when saved.
2016-01-13 18:07:15 -06:00