Commit Graph

1043 Commits

Author SHA1 Message Date
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
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
Bussonnier Matthias
771d67ada7 Merge pull request #2352 from bfroehle/notebook_unique_cookie_name
Notebook: Store the username in a cookie whose name is unique.

Cookies cannot be saved on a per-port basis, so a cookie "username" is shared
across all running IPython notebooks with the same hostname. Using a unique
cookie name prevents this collision.

This allows a user to start multiple IPython notebooks and be logged into
each.
2012-08-31 00:11:36 -07:00
MinRK
a9db0585d6 fix names of notebooks for download/save
was using notebook.get('name') instead of notebook.metadata.get('name'),
where the name is actually stored.  The result was that all downloaded notebooks were called 'notebook'.

closes #2227
2012-08-30 14:24:44 -07:00
Bradley M. Froehle
727379ec4f Notebook: Store the username in a cookie whose name is unique.
Cookies cannot be saved on a per-port basis, so a cookie "username" is
shared across all running IPython notebooks with the same hostname.
Using a unique cookie name prevents this collision.

This allows a user to start multiple IPython notebooks and be logged into
each.
2012-08-27 16:59:58 -07:00
Bussonnier Matthias
45f79e0509 Merge pull request #2192 from Carreau/notification
Introduce Notification Area

This allow several notification widget to be next one to the other in the notification area.
The Api allow also to register a callback if the user click on the notification. and allows sticky and non sticky notification.
2012-08-25 06:37:17 -07:00
Matthias BUSSONNIER
6526b6ea68 fix some whitespace 2012-08-24 11:52:31 +02:00
Matthias BUSSONNIER
645ac8df8e add tooltip to pager button 2012-08-22 11:21:50 +02:00
Matthias BUSSONNIER
5134212a4c This create the ability to detach the pager
When detached, the pager is collapsed and it's content is send into it's
own window/tab depending of the browser configuration.
2012-08-22 11:18:47 +02:00
Matthias BUSSONNIER
5e1ba95f6d check for selector only in parent classes 2012-08-12 14:43:50 +02:00
Matthias BUSSONNIER
00fcd46323 reorder methods and fix typo 2012-08-12 14:43:50 +02:00
Matthias BUSSONNIER
feabba941f space around : , bis 2012-08-12 14:31:33 +02:00