Commit Graph

1245 Commits

Author SHA1 Message Date
Fernando Perez
27eac3b78c Merge pull request #1847 from minrk/inlinecfg
add InlineBackend to ConsoleApp class list, so it will be included in generated config files / help-all output of the appropriate entry points.

This will alleviate some of the annoyance discussed on the list, because the config file will have the whole default rc commented out, so the starting point for user-edits is no change, rather than a blank slate.
2012-06-03 21:53:35 -07:00
MinRK
91180c0511 add InlineBackend to ConsoleApp class list
so it will be included in generated config files / help-all output
2012-06-03 21:40:01 -07:00
Matthias BUSSONNIER
9cfdea0d1c take care of token starting by '.' (dot) 2012-06-03 13:18:43 +02:00
Matthias BUSSONNIER
d74a58b3c8 [notebook] deduplicate completion results
remove context completion that are duplicates from introspection
completion
fixes #1840
2012-06-03 11:36:07 +02:00
Fernando Perez
8d5c980526 Small fixes to mailmap file 2012-06-02 15:42:30 -07:00
Brian E. Granger
aa19b3feb6 Merge pull request #1821 from ellisonbg/nbrename-enter
ENTER submits the rename notebook dialog.
2012-05-31 21:59:20 -07:00
Brian Granger
fc096c7232 Using IPython.utils.keycodes in the nb rename dialog. 2012-05-31 21:57:42 -07:00
Brian Granger
010c35b130 Making the input text area watch for ENTER in nb renames. 2012-05-31 21:55:33 -07:00
Brian Granger
4dc94e29c8 ENTER submits the rename notebook dialog. 2012-05-31 21:55:33 -07:00
Brian E. Granger
c57fa1cd6a Merge pull request #1820 from bfroehle/port_selection_2
NotebookApp: Make the number of ports to retry user configurable.
2012-05-31 21:47:35 -07:00
Brian E. Granger
81aa090ce0 Merge pull request #1816 from ellisonbg/nbname
Always use filename as the notebook name.
2012-05-31 21:34:49 -07:00
Fernando Perez
d12819830f Merge pull request #1813 from takluyver/nose-assert-methods
Add assert_in method to nose for Python 2.6.

Closes #1775.
2012-05-31 18:02:32 -07:00
Fernando Perez
ac548bd8bc Merge pull request #1711 from ipython/tooltipCompleterJSRefactor
New Tooltip, New Completer and JS Refactor.

This is a major reworking of lots of notebook client code, both introducing new features and allowing certain things to be done more cleanly:

- New graphical tooltip with keyboard control: successive presses of the TAB key will expand it, pin it for 10 s (a clock icon is shown), and send its content to the bottom help pager (which is now resizable).

- Completer has been refactored into a new class and now can analyze the current cell to support completions on objects that don't exist in the kernel yet (because the cell hasn't been executed).

- All the client-side JavaScript has been decoupled to ease reuse of parts of the machinery without having to build a full-blown notebook. This will make it much easier to communicate with an IPython kernel from existing web pages and to integrate single cells into other sites, without loading the full notebook document-like UI.

- This refactoring also enables the possibility of writing dynamic javascript widgets that are returned from Python code and that present an interactive view to the user, with callbacks in Javascript executing calls to the Kernel.  This will enable many interactive elements to be added by users in notebooks.  

An example of this capability has been provided as a proof of concept in `docs/examples/widgets` that lets you directly communicate with one or more parallel engines, acting as a mini-console for parallel debugging and introspection.

Closes #1498.
2012-05-31 17:25:17 -07:00
Bradley M. Froehle
7c1091c299 exit if server cannot start (instead of ugly traceback) 2012-05-31 16:24:22 -07:00
Bradley M. Froehle
6faad7f38f NotebookApp: Make the number of ports to retry user configurable.
Closes gh-1750.
2012-05-31 15:06:33 -07:00
Brian Granger
09da6cb8af Always use filename as the notebook name. 2012-05-31 14:01:36 -07:00
Brian Granger
4c2e42e9db Make : invalid in filenames in the Notebook JS code. 2012-05-31 13:33:34 -07:00
Brian Granger
4c31453ea7 Making Notebook.set_dirty an event so CodeCell can set it.
This allows code outside notebook.js to set the dirty flag, but
doesn't require that code depend on notebook.js.
2012-05-31 13:29:22 -07:00
Fernando Perez
41665e4483 Ensure that no tests are attempted if numpy or rpy2 are not present.
This prevents both importing of the extension itself and running of
the test suite.
2012-05-31 13:25:03 -07:00
Brian Granger
9826a17ae2 Removing cell from execute callbacks in kernel.js. 2012-05-31 13:24:10 -07:00
Thomas Kluyver
b47a0cfda9 Add assert_in method to nose for Python 2.6 2012-05-31 21:23:29 +01:00
Brian Granger
e817bfdaeb Update directview.ipynb & allowing no-callbacks in kernel.execute. 2012-05-31 13:08:34 -07:00
Brian Granger
94b24d6ac9 Moving direct view widget to docs/examples. 2012-05-31 13:08:33 -07:00
Brian Granger
9c94c996ae Removing extra call to Kernel.stop_channels. 2012-05-31 13:08:33 -07:00
Takafumi Arakaki
0df931d69a Reduce repeated code regarding restarting events 2012-05-31 13:08:33 -07:00
Takafumi Arakaki
db5393c618 Clear window title when kernel is restarted
When kernel is died and restarted, or restarted while it is in the
busy state, message "(Busy)" on the window title is not updated.  This
problem is fixed by updating document title when restarting.
2012-05-31 13:08:32 -07:00
Matthias BUSSONNIER
9f319f6da9 click on close cancell stick 2012-05-31 13:08:32 -07:00
Matthias BUSSONNIER
366cba5916 retab tab to space 2012-05-31 13:08:32 -07:00
Matthias BUSSONNIER
523ae0c377 fix tooltip keep focus on wrong cell
check that the cell the tooltip is giving focus back is the currently
selected cell
2012-05-31 13:08:31 -07:00
Matthias BUSSONNIER
a083ce93c1 remove less.css 2012-05-31 13:08:31 -07:00
Matthias BUSSONNIER
c06f5b1718 rename show/hide methods to avoid jQuery conflict.
it seem that show and hide methods fron tooltip where collinding with
jquery, sometime blocking the notebook.

Move from css fadeIn/Out to jQuery fade In/Out, and replace
addRemoveClass by fadeIn/fadeOut
2012-05-31 13:08:30 -07:00
Matthias BUSSONNIER
3dc363e1e8 Revert "remove less file"
This reverts commit 8af188d9be201f0dfaea86746705f5ff8b13ab50.
2012-05-31 13:08:30 -07:00
Brian Granger
8bd7e041cf Misc fixes to the code cell and output area. 2012-05-31 13:08:30 -07:00
Brian Granger
32343c5973 Fixed order of notebook loading and kernel starting.
For security reasons, the kernel should not be started until
after the notebook content is completely loaded and on the page.
This prevents people from creating notebooks that run nasty code
on the users machine at load time.

In order to implement this, we had to create a CodeCell.set_kernel
method that allows the kernel attribute of a CodeCell to be set
at a later time.  This also fixes some error messages we were
seeing related to the kernel's channels not being setup properly
when a send was attempted.
2012-05-31 13:08:29 -07:00
Matthias BUSSONNIER
186c995041 rename context-hint to contexthint 2012-05-31 13:08:29 -07:00
Matthias BUSSONNIER
88befeb497 space after function keyword in context-hint 2012-05-31 13:08:29 -07:00
Matthias BUSSONNIER
b1e5e99bcd beautify context-hint.js 2012-05-31 13:08:28 -07:00
Matthias BUSSONNIER
129f114868 Uppercase constant keycode in utils.js 2012-05-31 13:08:28 -07:00
Matthias BUSSONNIER
f3ff31b75a remove CamelCasse methods from completer.js 2012-05-31 13:08:28 -07:00
Matthias BUSSONNIER
b2a04396d8 space before function keyword in js 2012-05-31 13:08:27 -07:00
Matthias BUSSONNIER
ea325c095b beautify completer.js 2012-05-31 13:08:27 -07:00
Matthias BUSSONNIER
0f34ca4346 beautify tooltip.js 2012-05-31 13:08:27 -07:00
Matthias BUSSONNIER
27be46264a remove less file 2012-05-31 13:08:27 -07:00
Matthias BUSSONNIER
8d5d2d2446 shrink less and css, typo in css 2012-05-31 13:08:26 -07:00
Matthias BUSSONNIER
d823325be4 make sticky time configurable 2012-05-31 13:08:26 -07:00
Matthias BUSSONNIER
7d069cd792 Notification + tooltip demo
Use notification to quicky remind use of the tooltip

Use javascript in notebook to make a live demo in
01_notebook_introduction

tooltip docstring is remplaceid for the first use by a live tutorial
2012-05-31 13:08:26 -07:00
Matthias BUSSONNIER
c804c036ec tooltip, pager bring pager
execute xxxx? on behalf of the cell to bring the pager.
2012-05-31 13:08:25 -07:00
Matthias BUSSONNIER
b1a9677cc0 fix less css 2012-05-31 13:08:25 -07:00
Matthias BUSSONNIER
370b723cb6 Revert "remove less CSS"
This reverts commit 185c4ee21a4b658b55d313d1813a5bfeccaa20ef.
2012-05-31 13:08:25 -07:00
Brian Granger
644b1f85ed Fixing bug in prompt_area handling of OutputArea. 2012-05-31 13:08:25 -07:00