Commit graph

2021 commits

Author SHA1 Message Date
John Miller
a4c6892551 Support set-buffer-file-name
In support of fixing issues #46 and #47.
2015-05-15 23:23:56 -05:00
John Miller
8e72876ae8 Fix for worksheet tag, clean up some comments. 2015-05-15 18:28:13 -05:00
John Miller
5886498684 Add worksheet tags to nbformat 4 notebooks
NBformat 4 has a tag key in the cell metadata. We use it to tag a cell
depending on which worksheet it is in. For now the code does nothing
else with this tag, but the goal is to reimplement multiple worksheets
in ein.
2015-05-14 09:39:47 -05:00
John Miller
d2681d88e3 Proper implementation of #42, fix restart-kernel command.
Can jump to notebook cells from traceback buffer, kernel restart command
works on both IPython 2.x and 3.x.
2015-05-12 15:12:33 -05:00
John Miller
75c5f36ceb Find cell references in tracebacks, revert ein-polymode.
Traceback knows how to find notebook input cells. Roll back ein-polymode
setup - we aren't ready for that yet.
2015-05-05 21:22:36 -05:00
John Miller
3ee7a85131 Merge remote-tracking branch 'origin/master' into index-polymode 2015-05-05 19:47:16 -05:00
John Miller
39513afd1e Working in 2.x again.
Those if blocks can by pretty iffy. Har. Har . Har. It's late.
2015-05-04 23:36:47 -05:00
John Miller
fe4950cbb7 Correctly start sessions in ipython 3.x
Now start sessions correctly (I think) in IPython 3.x, but somehow this
seems to break IPython 2.x.
2015-05-04 22:59:18 -05:00
John Miller
91a9404748 Merge remote-tracking branch 'origin/master' into index-polymode 2015-05-04 10:55:38 -05:00
John Miller
b4ed5b8017 Update .gitignore, new notebook for development/testing. 2015-05-04 10:55:18 -05:00
John Miller
fd6711c4e0 Quick fix for issue #43
This fixes the invalid json error, but behavior still leaves a bit to be
desired. EIN will save pretty text over html, which may be unexpected
behavior for some.
2015-05-03 09:31:30 -05:00
John Miller
ac53106194 Setup and documentation
Some test code and some exploratory writing (see Enhancements.org) to
get my head on straight.
2015-05-03 00:14:38 -05:00
John Miller
edb0fd216a Fix prompt for ein ipdb comint buffer. 2015-04-10 14:01:40 -05:00
John Miller
c488bfb020 Detect ipdb vs pdb, handle debugger output.
Somehow lost ability to handle iopub responses when debugger session is
running.

Also try to set prompt in comint buffer to match debugger being called
(ipdb vs. pdb).
2015-04-10 13:59:36 -05:00
John Miller
1d6c26bbf6 Merge remote-tracking branch 'origin/stdin-channel'
Conflicts:
	lisp/ein-ipdb.el
	lisp/ein-kernel.el
2015-04-09 08:15:23 -05:00
John Miller
a17c642a0c Exit debugging sessions more gracefully. 2015-04-08 10:31:57 -05:00
John Miller
df8e2b01fa Apply font properties on comint output.
`ein:cell-append-text` is a great little function. Thank you tkf...
2015-04-07 20:08:30 -05:00
John Miller
518201d5e7 Comint now functional.
On %debug magic, ein opens a comint buffer that communicates with the
ipdb session. Question now is will this lead to functioning with gud?
2015-04-07 19:43:22 -05:00
John Miller
bf11f775c2 Getting closer. 2015-04-07 06:51:37 -05:00
John Miller
29e1d7e077 Experiment with comint.
Doing as a first step towards integration with gud...
2015-04-06 13:34:42 -05:00
John Miller
04d36b3fa1 Bump version.
May also have fixed some indentation issues as ein-python was meant for
an old version of python.el.
2015-04-06 12:20:46 -05:00
John Miller
ab8ad81c51 Revert "Separate ipdb buffer, basic command loop."
This reverts commit 33522fcb8d.
2015-04-06 12:14:45 -05:00
John Miller
3fdcd06930 Merge remote-tracking branch 'origin/stdin-channel' 2015-04-06 11:59:35 -05:00
John Miller
33522fcb8d Separate ipdb buffer, basic command loop. 2015-04-06 07:23:09 -05:00
John Miller
3344fac972 Merge pull request #39 from kidmose/feature/test-ipy-3
Feature/test ipy 3
2015-04-02 21:53:15 -05:00
Egon Kidmose
76cfd4fd91 travis to test with emacs24, ipython 3.0.0 2015-04-01 14:29:08 +02: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
John Miller
faaa578807 Basic support for ipdb sessions.
Similar to support in web interface; interaction with debugger is sent
to cell output. We can do better.
2015-03-31 17:26:00 -05:00
John Miller
1c73f2b016 Support stdin input_request for password 2015-03-31 16:55:14 -05:00
John Miller
10154bfa9e Actually update zeroein.el.
Sigh.
2015-03-26 13:13:49 -05:00
John Miller
4b5ec14cb1 Actually update websocket. 2015-03-26 13:10:54 -05:00
John Miller
0d6881b7b1 Update websocket to latest; fix zeroein.el dependencies. 2015-03-26 13:09:32 -05:00
John Miller
2eeae04a03 Fix issue #35
Get ein:junk-new working again under IPython 2.x.

Some non-related work on fixing `ein:pytools-export-buffer`. Not quite
there yet, but I have an idea of what is going on.
2015-03-25 09:52:16 -05:00
John Miller
7a43f34dc9 FIX: pytools-jump-to-source
Was not working in IPython 3.0 thanks to changes in the messaging spec.
2015-03-21 21:57:04 -05:00
John Miller
d2232a9814 Merge pull request #34 from smoofra/traceback
Traceback
2015-03-21 21:01:44 -05:00
Lawrence D'Anna
7581aa33ac bugfix: make \C-c \C-x (ein:tb-show) work
ein:tb-show wasn't working because tracebacks were being stored in "error"
messages, and it was looking for them in "pyerr" messages.
2015-03-20 19:03:51 -07:00
Lawrence D'Anna
dffd45e383 bugfix: don't print the same traceback twice
When there is a python error, we actually get two identical tracebacks back
from the kernel, one from the "shell" channel, and one from the "iopub"
channel.  As a workaround, we remember the cell's traceback and ignore
traceback outputs that are identical to the one we already have.
2015-03-20 19:03:51 -07:00
John Miller
0328ee70aa Fix silly typo.
It was silly.
2015-03-18 14:09:44 -05:00
John Miller
f41549cd2e Fix `KeyError: 'detail_level' with IPython 3.0
Some more problems with inspect_request messages that I thought I fixed
in earlier commits.

Also some typo fixin' and link correctin'.
2015-03-17 20:41:31 -05:00
John Miller
68e14af9ea Object info for IPython 3.0
After many attempts ein now supports getting object information in
IPython 3.0 just like in the good ole days in IPython 2.x.
2015-03-11 17:02:25 -05:00
John Miller
3c1131a558 Save error outputs in IPython 3.0.
Also less verbose messaging when saving nbformat 4 notebooks.
2015-03-01 12:37:22 -06:00
John Miller
df72c1df12 Fix error reporting in IPython 3.0
Protocol for error reporting has changed in IPython 3.0 messaging and
ein was missing error messages.

EIN was also saving "*" for the notebook execution count and per
nbformat v4 execute_count can only be null or a number.
2015-02-25 14:55:09 -06:00
John Miller
28a0c53bc6 Factor out ein-mumamo. Documentaiton update.
Compiling ein when nxhtml is not installed causes an error when
compiling ein-mumamo.el. Since it seems unreasonable to force mumamo as
a dependency (it is not in MELPA) better to move mumamo support to its
own, optional package.

Also some long overdue upates to documentation.
2015-02-21 19:07:34 -06:00
John Miller
7c251fbd5c Fix locked ein-contents-api
Fixes issues #27. I hope.
2015-02-21 17:50:20 -06:00
John Miller
9774ab910f Fixing misnamed variable. 2015-02-16 21:54:21 -06:00
John Miller
c1ce100f31 Renaming notebooks works again in IPython 2.x
As an added bonus you should be able to move notebooks to different
directories in the notebook hierarchy. Not tested, though, so I'm not
sure how well that works.
2015-02-16 21:14:47 -06:00
John Miller
ff415f3ebc Unbreaking ein:notebook-rename-command 2015-02-16 13:06:35 -06:00
John Miller
ec537398d1 New feature ein:pytools-export-buffer
Export contents of notebook using nbconvert_ to user-specified format
\(options will depend on the version of nbconvert available\) to a new
buffer.

Currently EIN/IPython supports exporting to the following formats:

- HTML
- JSON (this is basically the sames opening the ipynb file in a buffer).
- Latex
- Markdown
- Python
- RST
- Slides

.. _nbconvert:
http://ipython.org/ipython-doc/stable/notebook/nbconvert.html

Also making ein.py compatible with IPython 3.
2015-02-16 11:28:35 -06:00
John Miller
f711a83d42 Fixing up some typos. 2015-02-15 11:34:50 -06:00