Commit Graph

1054 Commits

Author SHA1 Message Date
Thomas Kluyver
e344f37ebd Merge pull request #2301 from takluyver/ast-transfomers
Ast transfomers
2012-11-30 13:51:43 -08:00
Bussonnier Matthias
01a54bee69 Merge pull request #2572 from dwf/paste_above_as_default
Make 'Paste Below' the default paste behavior in notebook.
2012-11-22 11:12:39 -08:00
Matthias BUSSONNIER
a56ee187ff past below by default 2012-11-18 12:30:36 +01:00
dkua
5993c3bf9f Made changes as per discussion in PR thread. 2012-11-13 18:06:15 -05:00
dkua
da8c05414e Made some changes to message and logic as advised by Fernando. 2012-11-13 17:11:03 -05:00
dkua
c8d3dbcc98 Refactored warning printout as per Issue #2244 2012-11-13 17:11:03 -05:00
David Warde-Farley
a9910aa408 "Paste Cell Replace" -> "Paste Cell & Replace" 2012-11-12 17:47:43 -05:00
David Warde-Farley
01f0332add Make 'Paste Above' the default paste behavior.
Destructive paste mapped to Ctrl-M V is a surprising choice given that
there was no drag-to-select on the area being replaced (there is a
weaker notion of "selected cell" but this does not map to will-be-replaced-
by-paste in the minds of participants in an unscientific poll at
PyConCA).

Destructive paste is still available as the last paste option in the
Edit menu, qualified as "Paste Cell Replace".
2012-11-12 17:22:44 -05:00
Bussonnier Matthias
a0544ec066 Merge pull request #2561 from takluyver/notebook-carriage-return
Fix display of plain text containing multiple carriage returns before line feed
2012-11-12 02:14:30 -08:00
Bussonnier Matthias
1f79f5b89e Merge pull request #2549 from dwf/delete_undo
Add a simple 'undo' for cell deletion.
2012-11-12 02:13:57 -08:00
Bussonnier Matthias
56f1f39fbe Merge pull request #2525 from Carreau/execute_hooks
Add event to kernel execution/shell reply.
2012-11-09 06:08:18 -08:00
Thomas Kluyver
015e8e73f4 Fix display of plain text containing multiple carriage returns before line feed.
Closes gh-2560
2012-11-08 23:33:15 +00:00
David Warde-Farley
8ecb8cd8fe Make undelete respect order after insertions/deletions. 2012-11-06 17:56:14 -05:00
David Warde-Farley
bb8249864d Add comment re: quickhelp key. 2012-11-06 03:21:16 -05:00
David Warde-Farley
f4d471c70e Move undo quickhelp to more appropriate spot. 2012-11-05 19:01:24 -05:00
David Warde-Farley
33c1f78d33 Add a simple 'undo' for cell deletion.
I've accidentally deleted the wrong cell quite a few times and
it has been quite frustrating. This enables a very hacky backup of
the last cell deletion.

I'm sure the core devs will have some opinions on both the feature
and its implementation, I consider this very much a first pass.
2012-11-05 18:58:09 -05:00
Matthias BUSSONNIER
4aea2b495a add status_started event to Kernel 2012-11-05 19:51:31 +01:00
Matthias BUSSONNIER
68fd917bfb change all trigger parameter to (event,data) 2012-11-02 21:23:34 +01:00
Matthias BUSSONNIER
afa18913b9 invert event name 2012-11-02 13:58:08 +01:00
Aron Ahmadia
cf0254bc31 Finalizing fixes to MathJax enhancements
* Cell.prototype.typeset functionality restored
* MathJax configuration files back in .js, delayedStartup
* Renamed HUB to hub
* Removed vestigial comment
* Restored Markdown Cell placeholder render functionality
2012-11-01 09:11:13 +00:00
Aron Ahmadia
5863b6fd7f undid unique ids, used jQuery 2012-11-01 08:22:19 +00:00
Aron Ahmadia
4620ce8348 Remove Equation References/Numbering, Fix Bugs
Equation References and Numbering are not going to be trivial to add,
so the code has been removed for now.  Important fixes include
no-MathJax support (previously, the code was failing), and the
generation of unique ids for the rendering content in each cell,
tremendously speeding up MathJax rendering.

I am still not rendering placeholder text.
2012-11-01 08:22:19 +00:00
Aron Ahmadia
12c661f761 Improved MathJax, missing callback workaround
MathJax.InputJax.TeX.resetEquationNumbers is supposed to be available,
but isn't consistently loaded before the notebook fires off its first
re-render request.  The code edits in mathjaxutils.js fix this issue.

Additionally, there was some init code in mathjaxutils.js that has been
properly excised to the html templates.

Removed some orphan rendering code so that all typesetting now goes
through mathjaxutils.js

Finally, removed an extra cell in the demo notebook.
2012-11-01 08:22:19 +00:00
Bussonnier Matthias
eba9044f2e Merge pull request #2464 from iguananaut/nb-out-links
Locate URLs in notebook text output and convert them to hyperlinks.
2012-10-31 08:52:51 -07:00
Bussonnier Matthias
fcad4a3f2c Merge pull request #2498 from Carreau/fixes2487
Don't catch tab press when something selected

allow to indent with 'tab' in some cases.
2012-10-31 01:40:23 -07:00
Paul Ivanov
b96b4689ed added on-hover descriptions of the new menu items 2012-10-26 15:29:19 -07:00
Paul Ivanov
2949cd5787 fine-grained notebook 'run' controls, closes #2521
This adds "Run All Above" and "Run All Below" menu items to Cell thanks
to @Carreau for the implementation suggestion
2012-10-26 15:21:04 -07:00
Matthias BUSSONNIER
eeea623161 Add event to kernel execution/shell reply.
This should allow to hook more easily phantomjs for testing.
2012-10-26 22:03:57 +02:00
Paul Ivanov
0b3cb7764d clear In[ ] prompt numbers again 2012-10-25 19:54:56 -07:00
Matthias BUSSONNIER
c1a11bbb3b Don't catch tab press when something selected
fixes #2487
2012-10-17 18:45:48 +02:00
Aron Ahmadia
8d3fbe5901 Refactored to JS standards. Fixed Attribution.
thisStyle      --> this_style.
function foo() --> var foo = function()

StackExchange improperly attributed for Davide Cervone's
Markdown+MathJax handling.  This has been fixed.

Ref:
http://stackoverflow.com/a/11231030/122022
http://www.math.union.edu/~dpvc/transfer/mathjax/mathjax-editing.js
2012-10-13 14:29:17 +03:00
Aron Ahmadia
346173bcad correct environment rendering 2012-10-13 14:10:21 +03:00
Aron Ahmadia
0caac8cd28 partial refactor, can't quite get environments working 2012-10-13 14:10:21 +03:00
Matthias BUSSONNIER
aa9a5db301 fix bootstrap name conflicts
change .tooltip to .ipython_tooltip
class name in css to avoid conflic with bootstrap

don't put header logo in h1 to also avoid conflict
2012-10-07 18:57:01 +02:00
Erik M. Bray
ae27cc7c3e Locate URLs in text output and convert them to hyperlinks. 2012-10-03 16:51:18 -04:00
Brian E. Granger
2be72dae5d Merge pull request #2421 from Carreau/nbconsole
Some notebook tweaks.
2012-10-03 12:48:52 -07:00
Matthias BUSSONNIER
20fec7b2d0 remove rogue codemirror onUpdate 2012-10-03 17:20:27 +02:00
Brian E. Granger
7ae77c8372 Merge pull request #2127 from Carreau/jsToolbar
Ability to build toolbar in JS
2012-10-02 09:58:48 -07:00
Bussonnier Matthias
362eab83aa Merge pull request #2216 from Carreau/autohighlight
Autochange highlight with cell magics

Highlight change is made on cell load and Enter keypress.
For now, it recognizes %%javascript, %%python[3], %%ruby, %%bash , %%R, %%perl.

new modes can easily be added by adding regular expression on config.js
2012-09-29 06:12:39 -07:00
Bussonnier Matthias
b1662530a0 Merge pull request #2442 from minrk/signithalt
allow iptest to be interrupted
2012-09-28 01:14:45 -07:00
Min RK
9eb2b0b161 Merge pull request #2240 from minrk/stranded_metadata
fix message built for engine dying during task

would result in KeyError on missing 'metadata'
2012-09-27 16:30:44 -07:00
MinRK
d6db92b7e6 allow iptest to be interrupted
Previously `^C` would register as a regular test failure, and the test suite would continue, in which case halting `iptest` meant hitting `^C` nine times.

This change makes iptest take notice of sigint in a test runner, and aborts the run.
2012-09-27 15:58:00 -07:00
Bussonnier Matthias
01cdf460cc align output with input 2012-09-23 16:20:19 +02:00
Bussonnier Matthias
a03764ed67 add ability to create continuation prompt 2012-09-23 16:20:11 +02:00
Bussonnier Matthias
045973b6bb add insert_cell_at_bottom prototype 2012-09-23 14:05:12 +02:00
Bradley M. Froehle
4982a24bd7 Merge pull request #2326 from Carreau/detachable-pager
Detachable pager in notebook.
2012-09-18 13:28:00 -07:00
Ohad Ravid
c58e152f57 Answer Issue #2366
If a file notebook is used, and a relative directory is given, make it
absolute.
2012-09-17 00:03:06 +03:00
Bussonnier Matthias
3119f11ba6 change detach icon and tab title 2012-09-15 13:37:41 +02:00
Matthias BUSSONNIER
e0e519afcb Add scroll_to_cell(cell_number) to the notebook 2012-09-11 21:59:31 +02:00
Matthias BUSSONNIER
f4d9dabc31 remove notification widget leftover
fixes #2367
2012-08-31 20:08:15 +02:00